[osgeo4w-dev] packaging: .tmpl files are deprecated, right?

Matt Wilkie matt.wilkie at gov.yk.ca
Tue Feb 9 16:32:03 EST 2010


Hi Folks, I'm waking up and old thread here, 26/04/2008...

> 2) Updated textreplace in msvcrt so that "-t abc.txt" will update abc.txt
> in place if there is no abc.txt.tmpl file.   As Jeff has pointed out it
> is preferrable to update stuff in place rather than have template files
> so that uninstall will cleanup better. 
I believe this means using .tmpl files should be deprecated as a 
standard packaging method? I'm happy to make the changes to 
http://trac.osgeo.org/osgeo4w/wiki/PackagingInstructions if this is the 
case.

I've noticed setup leaves the .tmpl in the bin directory when 
installing, and then when uninstalling it deletes the .tmpl file but 
leaves the bat file behind. This is likely what Jeff was referring to; 
example:
#####
1. run osgeo-setup.exe: Advanced > Next (x4):
    - press [View] until "Full"
    - select only "msvcrt" package (verify by pressing [View] until 
"Partial" is shown - 'msvcrt' should be the only package selected)
    - [Next] ... package is installed ... [Finish]

2. Inspect "c:\osgeo4w\bin", both 'o4w_env.bat.tmpl' and 'o4w_env.bat' 
are present. Only be the .bat should be.

3. Inspect the install manifest, C:\osgeo4w\etc\setup\msvcrt.lst.gz, 
'o4w_env.bat.tmpl' is listed while '/o4w_env.bat' is not.

4. Use osgeo-setup.exe to uninstall 'msvcrt', inspect c:\osgeo4w\bin, it 
is empty except for 'o4w_env.bat'.
#####

So if I understand things correctly, all that package maintainer need to 
do is rename *.bat.tmpl *.bat. For example in the msvcrt package  
'bin/o4w_env.bat.tmpl' should be renamed 'bin/o4w_env.bat'.

Correct?

matt wilkie
--------------------------------------------
Geomatics Analyst
Information Management and Technology
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
-------------------------------------------- 



Frank Warmerdam wrote:
> Folks,
>
> In the least few days, I've done a few updates.
>
> 1) Updated msvcrt (base) packaged to include a o4w-env.bat script which
> other scripts can source to setup the environment.  This doesn't matter
> for commandline programs run from the shell, but it does matter for stuff
> run from icons.
>
> 2) Updated textreplace in msvcrt so that "-t abc.txt" will update abc.txt
> in place if there is no abc.txt.tmpl file.   As Jeff has pointed out it
> is preferrable to update stuff in place rather than have template files
> so that uninstall will cleanup better.
>
> 3) Added a menu item and a desktop icon for the OpenEV package.
>
> 4) Packaged Java MapScript (as mapscript-java).  I'm not too clear yet
> how we are going to make these .jar files be in the "standard classpath"
> or even if that is desirable.
>
> 5) Updated the setup program to include an OpenEV item in the express
> install.
>
> Best regards,


More information about the osgeo4w-dev mailing list