libretro-super/libretro-install-win32.sh

20 lines
409 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
2013-05-03 11:34:46 +00:00
SCRIPT=$(readlink -f $0)
BASE_DIR=$(dirname $SCRIPT)
RARCH_DIR=$BASE_DIR/dist
RARCH_DIST_DIR=$RARCH_DIR/windows
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}.dll|"
REGEX="s|^\(.*\)\.dll$|\1-${ARCH_EXT}.zip|"
FILENAME="`echo $file | sed -e $REGEX_MV`"
mv -v "$file" "$FILENAME"
zip "`echo $file | sed -e $REGEX`" "$FILENAME"
done