Skip to content

Commit 44921e1

Browse files
committedApr 25, 2013
osgeo4w: make batch files location independant
1 parent 5cbf42b commit 44921e1

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed
 

‎ms-windows/osgeo4w/browser.bat.tmpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@echo off
2-
3-
SET OSGEO4W_ROOT=@osgeo4w@
4-
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
2+
call "~dp0\o4w_env.bat
53
call "%OSGEO4W_ROOT%"\apps\grass\grass-@grassversion@\etc\env.bat
64
@echo off
75
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\lib

‎ms-windows/osgeo4w/package.cmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,4 +316,3 @@ if exist %PACKAGENAME%-oracle-provider-%VERSION%-%PACKAGE%.tar.bz2 del %PACKAGEN
316316

317317
:end
318318
echo FINISHED: %DATE% %TIME% >>%LOG% 2>&1
319-

‎ms-windows/osgeo4w/qgis.bat.tmpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@echo off
2-
3-
SET OSGEO4W_ROOT=@osgeo4w@
4-
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
2+
call "%~dp0\o4w_env.bat"
53
call "%OSGEO4W_ROOT%"\apps\grass\grass-@grassversion@\etc\env.bat
64
@echo off
75
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\lib

0 commit comments

Comments
 (0)
Please sign in to comment.