[GRASS-SVN] r48550 -
grass/branches/develbranch_6/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 29 03:22:02 EDT 2011
Author: hamish
Date: 2011-09-29 00:22:01 -0700 (Thu, 29 Sep 2011)
New Revision: 48550
Modified:
grass/branches/develbranch_6/scripts/g.extension/g.extension
Log:
add some warnings if spaces are found in the pathnames
Modified: grass/branches/develbranch_6/scripts/g.extension/g.extension
===================================================================
--- grass/branches/develbranch_6/scripts/g.extension/g.extension 2011-09-28 22:16:02 UTC (rev 48549)
+++ grass/branches/develbranch_6/scripts/g.extension/g.extension 2011-09-29 07:22:01 UTC (rev 48550)
@@ -243,7 +243,19 @@
exit 1
fi
+# make doesn't like spaces in path names, issue a warning if we see one:
+GLOOM="The build which follows will likely fail."
+if [ `echo "$GISBASE" | grep -c ' '` -gt 0 ] ; then
+ g.message -w "The GRASS program path: [$GISBASE] contains a space. $GLOOM"
+fi
+if [ `echo "$PREFIX" | grep -c ' '` -gt 0 ] ; then
+ g.message -w "The specified install path: [$PREFIX] contains a space. $GLOOM"
+fi
+if [ `echo "$TMPDIR" | grep -c ' '` -gt 0 ] ; then
+ g.message -w "The path to your GIS data: [`g.gisenv GISDBASE`] may contain a space. $GLOOM"
+fi
+
if [ "$GIS_OPT_OPERATION" = "remove" ] ; then
g.message message="Removing <$MODULE>..."
@@ -293,6 +305,7 @@
# without having to install whole distribution even after modifying only
# one module. It will update both $(GRASS_HOME)/dist.$(ARCH) and $(INST_DIR).
# see $GISBASE/include/Make/Grass.make
+### actually this may not be needed anymore ###
INST_NOW=true
export INST_NOW
More information about the grass-commit
mailing list