]> git.lyx.org Git - lyx.git/commitdiff
cmake: remember path
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 6 Dec 2011 20:23:26 +0000 (20:23 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Tue, 6 Dec 2011 20:23:26 +0000 (20:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40399 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/build.bat

index 2f466aeb48ef20e6122f5c9dc8ed0496324bc2ce..96ff8791976e3a42273cbdbda9ef9fd0c74cc572 100755 (executable)
@@ -28,6 +28,10 @@ if [%1]==[] (
        goto :eof
 )
 
+REM Save path
+set CALLED_FROM=%CD%
+
+
 REM Add path to qmake here or set PATH correctly on your system.
 set PATH="D:\Qt\bin";%PATH%
 
@@ -86,7 +90,7 @@ if "%1%" == "install" (
        msbuild INSTALL.vcxproj /p:Configuration=Release 
 )
 
-REM Edit the path according to your system.
-cd "%LYX_SOURCE%\development\cmake"
+REM go back to the dir where the script was called from
+cd /D %CALLED_FROM%
 
 :eof