Skip to content

Commit

Permalink
update osgeo4w packaging
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-1_3_0@11644 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 12, 2009
1 parent afeb742 commit 480b103
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
9 changes: 4 additions & 5 deletions ms-windows/osgeo4w/package.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off
set GRASS_VERSION=6.4.0svn
set SVNVERSION=c:/cygwin/bin/svnversion
set PACKAGENAME=qgis-dev
set PACKAGENAME=qgis-unstable

set BUILDDIR=%CD%\build
REM set BUILDDIR=%TEMP%\qgis_unstable
Expand Down Expand Up @@ -36,8 +36,7 @@ if "%DEVENV%"=="" goto error

PROMPT qgis%VERSION%$g

set BUILDCONF=RelWithDebInfo
REM set BUILDCONF=Release
set BUILDCONF=Release


cd ..\..
Expand Down Expand Up @@ -129,8 +128,8 @@ echo PACKAGE: %DATE% %TIME%>>%LOG% 2>&1
cd ..
copy postinstall.bat %OSGEO4W_ROOT%\etc\postinstall\%PACKAGENAME%.bat
copy preremove.bat %OSGEO4W_ROOT%\etc\preremove\%PACKAGENAME%.bat
copy %PACKAGENAME%.bat.tmpl %OSGEO4W_ROOT%\bin\%PACKAGENAME%.bat.tmpl
copy qgis-dev.reg.tmpl %OSGEO4W_ROOT%\apps\%PACKAGENAME%\bin\qgis-dev.reg.tmpl
copy qgis.bat.tmpl %OSGEO4W_ROOT%\bin\%PACKAGENAME%.bat.tmpl
copy qgis.reg.tmpl %OSGEO4W_ROOT%\apps\%PACKAGENAME%\bin\%PACKAGENAME%.reg.tmpl

sed -e 's/%OSGEO4W_ROOT:\=\\\\\\\\%/@osgeo4w@/' %OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py >%OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py.tmpl
if errorlevel 1 goto error
Expand Down
12 changes: 6 additions & 6 deletions ms-windows/osgeo4w/postinstall.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
textreplace -std -t bin\qgis-dev.bat
textreplace -std -t apps\qgis-dev\python\qgis\qgisconfig.py
textreplace -std -t bin\qgis-unstable.bat
textreplace -std -t apps\qgis-unstable\python\qgis\qgisconfig.py

mkdir "%OSGEO4W_STARTMENU%"
xxmklink "%OSGEO4W_STARTMENU%\Quantum GIS (trunk).lnk" "%OSGEO4W_ROOT%\bin\qgis-dev.bat" " " \ "Quantum GIS - Desktop GIS (trunk)" 1 "%OSGEO4W_ROOT%\apps\qgis-dev\icons\QGIS.ico"
xxmklink "%ALLUSERSPROFILE%\Desktop\Quantum GIS (trunk).lnk" "%OSGEO4W_ROOT%\bin\qgis-dev.bat" " " \ "Quantum GIS - Desktop GIS (trunk)" 1 "%OSGEO4W_ROOT%\apps\qgis-dev\icons\QGIS.ico"
xxmklink "%OSGEO4W_STARTMENU%\Quantum GIS (1.3).lnk" "%OSGEO4W_ROOT%\bin\qgis-unstable.bat" " " \ "Quantum GIS - Desktop GIS (1.3)" 1 "%OSGEO4W_ROOT%\apps\qgis-unstable\icons\QGIS.ico"
xxmklink "%ALLUSERSPROFILE%\Desktop\Quantum GIS (1.3).lnk" "%OSGEO4W_ROOT%\bin\qgis-unstable.bat" " " \ "Quantum GIS - Desktop GIS (1.3)" 1 "%OSGEO4W_ROOT%\apps\qgis-unstable\icons\QGIS.ico"

set O4W_ROOT=%OSGEO4W_ROOT%
set OSGEO4W_ROOT=%OSGEO4W_ROOT:\=\\%
textreplace -std -t "%O4W_ROOT%\apps\qgis-dev\bin\qgis-dev.reg"
"%WINDIR%\regedit" /s "%O4W_ROOT%\apps\qgis-dev\bin\qgis-dev.reg"
textreplace -std -t "%O4W_ROOT%\apps\qgis-unstable\bin\qgis-unstable.reg"
"%WINDIR%\regedit" /s "%O4W_ROOT%\apps\qgis-unstable\bin\qgis-unstable.reg"
8 changes: 4 additions & 4 deletions ms-windows/osgeo4w/preremove.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
del "%OSGEO4W_STARTMENU%\Quantum GIS (trunk).lnk"
del "%ALLUSERSPROFILE%\Desktop\Quantum GIS (trunk).lnk"
del "%OSGEO4W_ROOT%"\bin\qgis-dev.bat
del "%OSGEO4W_ROOT%"\apps\qgis-dev\python\qgis\qgisconfig.py
del "%OSGEO4W_STARTMENU%\Quantum GIS (1.3).lnk"
del "%ALLUSERSPROFILE%\Desktop\Quantum GIS (1.3).lnk"
del "%OSGEO4W_ROOT%"\bin\qgis-unstable.bat
del "%OSGEO4W_ROOT%"\apps\qgis-unstable\python\qgis\qgisconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
call "%OSGEO4W_ROOT%"\bin\gdal16.bat
@echo off
path %PATH%;%GISBASE%\bin
start "Quantum GIS" /B "%OSGEO4W_ROOT%"\apps\qgis-dev\bin\qgis.exe %*
start "Quantum GIS" /B "%OSGEO4W_ROOT%"\apps\qgis-unstable\bin\qgis.exe %*
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ Windows Registry Editor Version 5.00
@="Quantum GIS Project"

[HKEY_CLASSES_ROOT\Quantum GIS Project\DefaultIcon]
@="@osgeo4w@\\apps\\qgis-dev\\icons\\qgis.ico"
@="@osgeo4w@\\apps\\qgis-unstable\\icons\\qgis.ico"

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell]

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell\open]
@=""

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell\open\command]
@="\"@osgeo4w@\\bin\\qgis-dev.bat\" \"%1\""
@="\"@osgeo4w@\\bin\\qgis-unstable.bat\" \"%1\""

[HKEY_CLASSES_ROOT\.qgs]
@="Quantum GIS Project"
Expand Down

0 comments on commit 480b103

Please sign in to comment.