Browse files

Fix calling batch file for script refs: 1759623

  • Loading branch information...
1 parent 7f7390c commit 0e107e7197b78d19cc2df875ac599abd76afc1b3 @vexed vexed committed Feb 1, 2012
Showing with 9 additions and 6 deletions.
  1. +9 −6 build_tools/autorevision.bat
15 build_tools/autorevision.bat
@@ -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\ %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\ 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:
echo "Failed! Is msysgit in your system path?"

0 comments on commit 0e107e7

Please sign in to comment.