libretro-super/libretro-install-win32.sh

23 lines
471 B
Bash
Raw Normal View History

2012-04-22 15:12:15 +00:00
#!/bin/sh
2013-05-03 11:34:46 +00:00
ARCH_EXT="$1"
2012-04-22 15:12:15 +00:00
SCRIPT=$(readlink -f "$0")
BASE_DIR=$(dirname "$SCRIPT")
RARCH_DIR="$BASE_DIR/dist"
RARCH_DIST_DIR="$RARCH_DIR/win"
DAY=$(date +"%Y%m%d")
2012-04-22 15:12:15 +00:00
2013-05-03 11:34:46 +00:00
cd "$RARCH_DIST_DIR"
for file in *.dll
2012-04-22 15:12:15 +00:00
do
REGEX_MV="s|^\(.*\)\.dll$|\1_${ARCH_EXT}_${DAY}.dll|"
REGEX="s|^\(.*\)\.dll$|\1_${ARCH_EXT}_${DAY}.zip|"
2012-04-22 15:12:15 +00:00
FILENAME="`echo $file | sed -e $REGEX_MV`"
mv -v "$file" "$FILENAME"
zip "`echo $file | sed -e $REGEX`" "$FILENAME"
rm -f "$FILENAME"
2012-04-22 15:12:15 +00:00
done