[GRASS-SVN] r67025 - grass/trunk/mswindows/osgeo4w

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 6 02:23:55 PST 2015


Author: martinl
Date: 2015-12-06 02:23:55 -0800 (Sun, 06 Dec 2015)
New Revision: 67025

Modified:
   grass/trunk/mswindows/osgeo4w/package.sh
Log:
wingrass: fix postinstall and preremove script names

Modified: grass/trunk/mswindows/osgeo4w/package.sh
===================================================================
--- grass/trunk/mswindows/osgeo4w/package.sh	2015-12-05 17:39:26 UTC (rev 67024)
+++ grass/trunk/mswindows/osgeo4w/package.sh	2015-12-06 10:23:55 UTC (rev 67025)
@@ -161,9 +161,9 @@
 sed -e "s#@VERSION@#$VERSION#g" -e "s#@OSGEO4W_ROOT_MSYS@#$OSGEO4W_ROOT#g" \
     mswindows/osgeo4w/env.bat.tmpl >$OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/etc/env.bat
 sed -e "s#@VERSION@#$VERSION#g" -e "s#@GRASS_EXECUTABLE@#$GRASS_EXECUTABLE#g" \
-    mswindows/osgeo4w/postinstall.bat >$OSGEO4W_ROOT_MSYS/etc/postinstall/${GRASS_EXECUTABLE}.bat 
+    mswindows/osgeo4w/postinstall.bat >$OSGEO4W_ROOT_MSYS/etc/postinstall/grass${PACKAGE_NAME}.bat
 sed -e "s#@VERSION@#$VERSION#g" -e "s#@GRASS_EXECUTABLE@#$GRASS_EXECUTABLE#g" \
-    mswindows/osgeo4w/preremove.bat >$OSGEO4W_ROOT_MSYS/etc/preremove/${GRASS_EXECUTABLE}.bat 
+    mswindows/osgeo4w/preremove.bat >$OSGEO4W_ROOT_MSYS/etc/preremove/grass${PACKAGE_NAME}.bat 
 
 if [ -n "$PACKAGE" ]; then
     log building vc libraries 
@@ -186,15 +186,15 @@
     
     # bat files - unix2dos
     unix2dos bin/${GRASS_EXECUTABLE}.bat.tmpl
-    unix2dos etc/postinstall/${GRASS_EXECUTABLE}.bat
-    unix2dos etc/preremove/${GRASS_EXECUTABLE}.bat
+    unix2dos etc/postinstall/grass${PACKAGE_NAME}.bat
+    unix2dos etc/preremove/grass${PACKAGE_NAME}.bat
     
     # grass package
     tar -cjf $PDIR/grass$PACKAGE_NAME-$VERSION-$PACKAGE.tar.bz2 \
 	apps/grass/grass-$VERSION \
 	bin/${GRASS_EXECUTABLE}.bat.tmpl \
-	etc/postinstall/${GRASS_EXECUTABLE}.bat \
-	etc/preremove/${GRASS_EXECUTABLE}.bat
+	etc/postinstall/grass${PACKAGE_NAME}.bat \
+	etc/preremove/grass${PACKAGE_NAME}.bat
     
     rm bin/${GRASS_EXECUTABLE}.bat.tmpl
     



More information about the grass-commit mailing list