From 5f2371aa512890fffb7f2082f7937f0a8c16e75e Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 25 Aug 2009 00:12:42 +0200 Subject: [PATCH] Fixed parameter parsing bug in updateversion.sh. Added forgotten windows script. --- updateversion.bat | 4 ++++ updateversion.sh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 updateversion.bat diff --git a/updateversion.bat b/updateversion.bat new file mode 100644 index 0000000..e5cc147 --- /dev/null +++ b/updateversion.bat @@ -0,0 +1,4 @@ +set BASH=..\zr-devenv\win32\bin\bash.exe +set DATEPATH=../zr-devenv/win32/bin/date.exe + +%BASH% updateversion.sh %DATEPATH% diff --git a/updateversion.sh b/updateversion.sh index 0b5db86..1625d60 100755 --- a/updateversion.sh +++ b/updateversion.sh @@ -1,9 +1,9 @@ #!/bin/sh # Command for printing date. -ZR_DATEPATH=date +ZR_DATEPATH='date' -if [ -n $1 ] +if [ "$1" ] then ZR_DATEPATH=$1 fi