Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix calling batch file for autorevision.sh script refs: 1759623

  • Loading branch information...
commit 0e107e7197b78d19cc2df875ac599abd76afc1b3 1 parent 7f7390c
@vexed vexed authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 build_tools/autorevision.bat
View
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\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
Please sign in to comment.
Something went wrong with that request. Please try again.