mirror of
https://github.com/libretro/libretro-super
synced 2024-12-01 04:03:00 +00:00
fecea617fd
Uses date now as versioning scheme.
23 lines
471 B
Bash
Executable File
23 lines
471 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ARCH_EXT="$1"
|
|
|
|
SCRIPT=$(readlink -f "$0")
|
|
BASE_DIR=$(dirname "$SCRIPT")
|
|
RARCH_DIR="$BASE_DIR/dist"
|
|
RARCH_DIST_DIR="$RARCH_DIR/win"
|
|
|
|
DAY=$(date +"%Y%m%d")
|
|
|
|
cd "$RARCH_DIST_DIR"
|
|
for file in *.dll
|
|
do
|
|
REGEX_MV="s|^\(.*\)\.dll$|\1_${ARCH_EXT}_${DAY}.dll|"
|
|
REGEX="s|^\(.*\)\.dll$|\1_${ARCH_EXT}_${DAY}.zip|"
|
|
FILENAME="`echo $file | sed -e $REGEX_MV`"
|
|
mv -v "$file" "$FILENAME"
|
|
zip "`echo $file | sed -e $REGEX`" "$FILENAME"
|
|
rm -f "$FILENAME"
|
|
done
|
|
|