|
@@ -158,8 +158,6 @@ cp mswindows/osgeo4w/config.h.vc $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/in
|
|
|
mkdir -p $OSGEO4W_ROOT_MSYS/etc/preremove $OSGEO4W_ROOT_MSYS/etc/postinstall
|
|
|
sed -e "s#@VERSION@#$VERSION#g" -e "s#@OSGEO4W_ROOT@#$OSGEO4W_ROOT#g" -e "s#@POSTFIX@#$MAJOR$MINOR#g" \
|
|
|
mswindows/osgeo4w/grass.bat.tmpl >$OSGEO4W_ROOT_MSYS/bin/${GRASS_EXECUTABLE}.bat
|
|
|
-sed -e "s#@VERSION@#$VERSION#g" -e "s#@OSGEO4W_ROOT_MSYS@#$OSGEO4W_ROOT_MSYS#g" -e "s#@POSTFIX@#$MAJOR$MINOR#g" \
|
|
|
- mswindows/osgeo4w/grass.tmpl >$OSGEO4W_ROOT_MSYS/bin/${GRASS_EXECUTABLE}
|
|
|
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" \
|
|
@@ -185,12 +183,9 @@ if [ -n "$PACKAGE" ]; then
|
|
|
|
|
|
sed -e "s#@VERSION@#$VERSION#g" -e "s#@POSTFIX@#$MAJOR$MINOR#g" \
|
|
|
$SRC/mswindows/osgeo4w/grass.bat.tmpl >$OSGEO4W_ROOT_MSYS/bin/${GRASS_EXECUTABLE}.bat.tmpl
|
|
|
- sed -e "s#@VERSION@#$VERSION#g" -e "s#@OSGEO4W_ROOT_MSYS@#@OSGEO4W_ROOT@#g" -e "s#@POSTFIX@#$MAJOR$MINOR#g" \
|
|
|
- $SRC/mswindows/osgeo4w/grass.tmpl >$OSGEO4W_ROOT_MSYS/bin/${GRASS_EXECUTABLE}.tmpl
|
|
|
|
|
|
# bat files - unix2dos
|
|
|
unix2dos bin/${GRASS_EXECUTABLE}.bat.tmpl
|
|
|
- unix2dos bin/${GRASS_EXECUTABLE}.tmpl
|
|
|
unix2dos etc/postinstall/${GRASS_EXECUTABLE}.bat
|
|
|
unix2dos etc/preremove/${GRASS_EXECUTABLE}.bat
|
|
|
|
|
@@ -198,11 +193,9 @@ if [ -n "$PACKAGE" ]; then
|
|
|
tar -cjf $PDIR/grass$PACKAGE_NAME-$VERSION-$PACKAGE.tar.bz2 \
|
|
|
apps/grass/grass-$VERSION \
|
|
|
bin/${GRASS_EXECUTABLE}.bat.tmpl \
|
|
|
- bin/${GRASS_EXECUTABLE}.tmpl \
|
|
|
etc/postinstall/${GRASS_EXECUTABLE}.bat \
|
|
|
etc/preremove/${GRASS_EXECUTABLE}.bat
|
|
|
|
|
|
- rm bin/${GRASS_EXECUTABLE}.tmpl
|
|
|
rm bin/${GRASS_EXECUTABLE}.bat.tmpl
|
|
|
|
|
|
# grass-devel package (obsolete)
|