Przeglądaj źródła

wingrass: define osgeo4w dir postfix (use separate dirs for building
G6 a G7)


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

Martin Landa 12 lat temu
rodzic
commit
02d609194a
1 zmienionych plików z 10 dodań i 2 usunięć
  1. 10 2
      mswindows/osgeo4w/package.sh

+ 10 - 2
mswindows/osgeo4w/package.sh

@@ -21,8 +21,16 @@ export PACKAGE=${1:-1}
 # package name for osgeo4w
 # eg. 70-dev -> grass70-dev, empty for release
 export PACKAGE_NAME=$2
-export OSGEO4W_ROOT_MSYS="/c/OSGeo4W"
-export OSGEO4W_ROOT="C:\\\OSGeo4W"
+# OSGeo4W directory postfix, separate OSGeo4W installations are used
+# for building GRASS 6.x and 7.x
+if test -z "$3" ; then
+    OSGEO4W_ROOT_POSTFIX=""
+else
+    OSGEO4W_ROOT_POSTFIX="$3"
+fi
+export OSGEO4W_ROOT_MSYS="/c/OSGeo4W${OSGEO4W_ROOT_POSTFIX}"
+export OSGEO4W_ROOT="C:\\\OSGeo4W${OSGEO4W_ROOT_POSTFIX}"
+
 export PATH=.:/c/mingw/bin:/usr/local/bin:/bin:$OSGEO4W_ROOT_MSYS/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Subversion:$PWD/mswindows/osgeo4w
 
 T0=$(date +%s)