Fix calling batch file for autorevision.sh script refs: 17596232cc

master
vexed 2012-02-01 02:17:53 -05:00
parent 7f7390cb7e
commit 0e107e7197
1 changed files with 9 additions and 6 deletions

View File

@ -1,11 +1,14 @@
echo "Building autorevision.h... (msysgit must be in system path)"
IF EXIST %1..\src\autorevision.h del %1..\src\autorevision.h
sh.exe %1..\build_tools\autorevision.sh %1..\src\autorevision.h.lf
IF NOT EXIST %1..\src\autorevision.h.lf goto failed:
cd %1..\
echo %1
echo %cd%
IF EXIST autorevision.h del autorevision.h
sh.exe %1..\build_tools\autorevision.sh src\autorevision.h.lf
IF NOT EXIST src\autorevision.h.lf goto failed:
echo "converting file to CRLF from LF"
perl -p -e 's/\n/\r\n/' < %1..\src\autorevision.h.lf > %1..\src\autorevision.h
del %1..\src\autorevision.h.lf
IF EXIST %1..\src\autorevision.h goto good:
perl -p -e 's/\n/\r\n/' < src\autorevision.h.lf > src\autorevision.h
del src\autorevision.h.lf
IF EXIST src\autorevision.h goto good:
:failed
echo "Failed! Is msysgit in your system path?"
exit