From fecea617fd1fca36732c126af5387d825f5fcb59 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 19 May 2013 12:09:15 +0200 Subject: [PATCH] Fixup install-win32. Uses date now as versioning scheme. --- libretro-install-win32.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libretro-install-win32.sh b/libretro-install-win32.sh index 99be258a..a4ac69a8 100755 --- a/libretro-install-win32.sh +++ b/libretro-install-win32.sh @@ -5,13 +5,15 @@ ARCH_EXT="$1" SCRIPT=$(readlink -f "$0") BASE_DIR=$(dirname "$SCRIPT") RARCH_DIR="$BASE_DIR/dist" -RARCH_DIST_DIR="$RARCH_DIR/windows" +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}.dll|" - REGEX="s|^\(.*\)\.dll$|\1-${ARCH_EXT}.zip|" + 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"