Explorar o código

simplify package.sh
(merge https://trac.osgeo.org/grass/changeset/40063 from relbr64)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40065 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa %!s(int64=15) %!d(string=hai) anos
pai
achega
cb2c514b3a
Modificáronse 1 ficheiros con 7 adicións e 8 borrados
  1. 7 8
      mswindows/osgeo4w/package.sh

+ 7 - 8
mswindows/osgeo4w/package.sh

@@ -1,4 +1,4 @@
-#!/c/Programme/OSGeo4W/apps/msys/bin/sh
+#!/c/OSGeo4W/apps/msys/bin/sh
 
 set -e
 
@@ -7,9 +7,8 @@ if ! [ -d mswindows ]; then
 	exit 1
 fi
 
-#portable? can we use %PROGRAMFILES% -> $PROGRAMFILES here?
-OSGEO4W_ROOT_MSYS="/c/Programme/OSGeo4W"
-PATH="/c/mingw/bin:/usr/local/bin:/bin:$OSGEO4W_ROOT_MSYS/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem"
+OSGEO4W_ROOT_MSYS=/c/OSGeo4W
+PATH=.:/c/mingw/bin:/usr/local/bin:/bin:$OSGEO4W_ROOT_MSYS/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem
 export OSGEO4W_ROOT_MSYS PATH
 
 version() {
@@ -66,7 +65,7 @@ if ! [ -f mswindows/osgeo4w/configure-stamp ]; then
 fi
 
 echo $(date): STARTING make
-make -j4 || make -j4
+make || make
 
 echo $(date): STARTING make install
 make install
@@ -90,9 +89,9 @@ cp mswindows/osgeo4w/postinstall.bat \
    "$OSGEO4W_ROOT_MSYS/etc/postinstall/grass.bat"
 cp mswindows/osgeo4w/preremove.bat \
    "$OSGEO4W_ROOT_MSYS/etc/preremove/grass.bat"
-cp /c/mingw/bin/libgnurx-0.dll "$OSGEO_ROOT_MSYS/bin"
-cp /c/mingw/bin/libiconv-2.dll "$OSGEO_ROOT_MSYS/bin"
-cp /c/mingw/bin/libintl-8.dll "$OSGEO_ROOT_MSYS/bin"
+#cp /c/mingw/bin/libgnurx-0.dll "$OSGEO_ROOT_MSYS/bin"
+#cp /c/mingw/bin/libiconv-2.dll "$OSGEO_ROOT_MSYS/bin"
+#cp /c/mingw/bin/libintl-8.dll "$OSGEO_ROOT_MSYS/bin"
 
 P="$(pwd -W)"
 #portable? how about dist.amd64-pc-mingw32?