File tree Expand file tree Collapse file tree 5 files changed +19
-18
lines changed Expand file tree Collapse file tree 5 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
set GRASS_VERSION = 6.4.0svn
3
3
set SVNVERSION = c:/cygwin/bin/svnversion
4
- set PACKAGENAME = qgis-dev
5
4
6
5
set BUILDDIR = %CD% \build
7
6
REM set BUILDDIR=%TEMP%\qgis_unstable
@@ -12,8 +11,10 @@ if not exist "%BUILDDIR%" goto error
12
11
13
12
set VERSION = %1
14
13
set PACKAGE = %2
14
+ set PACKAGENAME = %3
15
15
if " %VERSION% " == " " goto error
16
16
if " %PACKAGE% " == " " goto error
17
+ if " %PACKAGENAME% " == " " set PACKAGENAME = qgis-dev
17
18
18
19
path %SYSTEMROOT% \system32;%SYSTEMROOT% ;%SYSTEMROOT% \System32\Wbem;%PROGRAMFILES% \CMake 2.6\bin
19
20
set PYTHONPATH =
@@ -127,10 +128,10 @@ if errorlevel 1 goto error
127
128
echo PACKAGE: %DATE% %TIME% >> %LOG% 2 >& 1
128
129
129
130
cd ..
130
- copy postinstall.bat %OSGEO4W_ROOT% \etc\postinstall\%PACKAGENAME% .bat
131
- copy preremove.bat %OSGEO4W_ROOT% \etc\preremove\%PACKAGENAME% .bat
132
- copy %PACKAGENAME% .bat.tmpl %OSGEO4W_ROOT% \bin\%PACKAGENAME% .bat.tmpl
133
- copy qgis-dev .reg.tmpl %OSGEO4W_ROOT% \apps\%PACKAGENAME% \bin\qgis-dev .reg.tmpl
131
+ sed -e 's/ @ package @ / %PACKAGENAME% /g' -e 's/ @ version @ / %VERSION% /g' postinstall.bat > %OSGEO4W_ROOT% \etc\postinstall\%PACKAGENAME% .bat
132
+ sed -e 's/ @ package @ / %PACKAGENAME% /g' -e 's/ @ version @ / %VERSION% /g' preremove.bat > %OSGEO4W_ROOT% \etc\preremove\%PACKAGENAME% .bat
133
+ sed -e 's/ @ package @ / %PACKAGENAME% /g' -e 's/ @ version @ / %VERSION% /g' qgis .bat.tmpl > %OSGEO4W_ROOT% \bin\%PACKAGENAME% .bat.tmpl
134
+ sed -e 's/ @ package @ / %PACKAGENAME% /g' -e 's/ @ version @ / %VERSION% /g' qgis .reg.tmpl > %OSGEO4W_ROOT% \apps\%PACKAGENAME% \bin\qgis.reg.tmpl
134
135
135
136
sed -e 's/%OSGEO4W_ROOT:\ =\\\\\\\\ % /@ osgeo4w@ /' %OSGEO4W_ROOT% \apps\%PACKAGENAME% \python\qgis\qgisconfig.py > %OSGEO4W_ROOT% \apps\%PACKAGENAME% \python\qgis\qgisconfig.py.tmpl
136
137
if errorlevel 1 goto error
Original file line number Diff line number Diff line change 1
- textreplace -std -t bin\qgis-dev .bat
2
- textreplace -std -t apps\qgis-dev \python\qgis\qgisconfig.py
1
+ textreplace -std -t bin\@ package @ .bat
2
+ textreplace -std -t apps\@ package @ \python\qgis\qgisconfig.py
3
3
4
4
mkdir " %OSGEO4W_STARTMENU% "
5
- 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"
6
- 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"
5
+ xxmklink " %OSGEO4W_STARTMENU% \Quantum GIS (@version@ ).lnk" " %OSGEO4W_ROOT% \bin\@package@ .bat" " " \ " Quantum GIS - Desktop GIS (@version@ )" 1 " %OSGEO4W_ROOT% \apps\@package@ \icons\QGIS.ico"
6
+ xxmklink " %ALLUSERSPROFILE% \Desktop\Quantum GIS (@version@ ).lnk" " %OSGEO4W_ROOT% \bin\@package@ .bat" " " \ " Quantum GIS - Desktop GIS (@version@ )" 1 " %OSGEO4W_ROOT% \apps\@package@ \icons\QGIS.ico"
7
7
8
8
set O4W_ROOT = %OSGEO4W_ROOT%
9
9
set OSGEO4W_ROOT = %OSGEO4W_ROOT:\ =\\ %
10
- textreplace -std -t " %O4W_ROOT% \apps\qgis-dev \bin\qgis-dev .reg"
11
- " %WINDIR% \regedit" /s " %O4W_ROOT% \apps\qgis-dev \bin\qgis-dev .reg"
10
+ textreplace -std -t " %O4W_ROOT% \apps\@package@ \bin\qgis.reg"
11
+ " %WINDIR% \regedit" /s " %O4W_ROOT% \apps\@package@ \bin\qgis.reg"
Original file line number Diff line number Diff line change 1
- del " %OSGEO4W_STARTMENU% \Quantum GIS (trunk ).lnk"
2
- del " %ALLUSERSPROFILE% \Desktop\Quantum GIS (trunk ).lnk"
3
- del " %OSGEO4W_ROOT% " \bin\qgis-dev .bat
4
- del " %OSGEO4W_ROOT% " \apps\qgis-dev \python\qgis\qgisconfig.py
1
+ del " %OSGEO4W_STARTMENU% \Quantum GIS (@version@ ).lnk"
2
+ del " %ALLUSERSPROFILE% \Desktop\Quantum GIS (@version@ ).lnk"
3
+ del " %OSGEO4W_ROOT% " \bin\@ package @ .bat
4
+ del " %OSGEO4W_ROOT% " \apps\@ package @ \python\qgis\qgisconfig.py
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
5
5
call "%OSGEO4W_ROOT%"\bin\gdal16.bat
6
6
@echo off
7
7
path %PATH%;%GISBASE%\bin
8
- start "Quantum GIS" /B "%OSGEO4W_ROOT%"\apps\qgis-dev \bin\qgis.exe %*
8
+ start "Quantum GIS" /B "%OSGEO4W_ROOT%"\apps\@package@ \bin\qgis.exe %*
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ Windows Registry Editor Version 5.00
4
4
@="Quantum GIS Project"
5
5
6
6
[HKEY_CLASSES_ROOT\Quantum GIS Project\DefaultIcon]
7
- @="@osgeo4w@\\apps\\qgis-dev \\icons\\qgis.ico"
7
+ @="@osgeo4w@\\apps\\@package@ \\icons\\qgis.ico"
8
8
9
9
[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell]
10
10
11
11
[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell\open]
12
12
@=""
13
13
14
14
[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell\open\command]
15
- @="\"@osgeo4w@\\bin\\qgis-dev .bat\" \"%1\""
15
+ @="\"@osgeo4w@\\bin\\@package@ .bat\" \"%1\""
16
16
17
17
[HKEY_CLASSES_ROOT\.qgs]
18
18
@="Quantum GIS Project"
You can’t perform that action at this time.
0 commit comments