From b2b077c9167a4dff2b9fd916c46baea4cb2be6b7 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 26 Aug 2009 04:44:59 +0200 Subject: [PATCH] Updated scripts for dumping version info. --- updateversion.bat | 14 ++++++++++++-- updateversion.sh | 5 ++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/updateversion.bat b/updateversion.bat index e5cc147..9e6b839 100644 --- a/updateversion.bat +++ b/updateversion.bat @@ -1,4 +1,14 @@ -set BASH=..\zr-devenv\win32\bin\bash.exe -set DATEPATH=../zr-devenv/win32/bin/date.exe +@echo off +REM Note: Copy this script to the source code repositroy and execute it +REM from that location. + +REM To avoid complicated and maybe impossible tasks in windows batch scripts, +REM this script will execute another linux shell script using cygwin. + +set BASH=%ZRDEVENV%\win32\bin\bash.exe +set DATEPATH=%ZRDEVENV%\win32\bin\date.exe + +REM Converts a windows path to a linux path for cygwin (/cygdrive/c/...). +for /f %%s in ('%ZRDEVENV%\win32\bin\cygpath.exe -u "%DATEPATH%"') do set DATEPATH=%%s %BASH% updateversion.sh %DATEPATH% diff --git a/updateversion.sh b/updateversion.sh index 1625d60..eb185b2 100755 --- a/updateversion.sh +++ b/updateversion.sh @@ -1,6 +1,9 @@ #!/bin/sh -# Command for printing date. +# Note: Copy this script to the source code repository and execute it +# from that location. + +# Program for printing date. ZR_DATEPATH='date' if [ "$1" ]