[GRASS-SVN] r40177 - grass/trunk/macosx/app

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 1 16:12:17 EST 2010


Author: kyngchaos
Date: 2010-01-01 16:12:16 -0500 (Fri, 01 Jan 2010)
New Revision: 40177

Modified:
   grass/trunk/macosx/app/build_gui_user_menu.sh
Log:
fix space-in-path problem

Modified: grass/trunk/macosx/app/build_gui_user_menu.sh
===================================================================
--- grass/trunk/macosx/app/build_gui_user_menu.sh	2010-01-01 19:18:55 UTC (rev 40176)
+++ grass/trunk/macosx/app/build_gui_user_menu.sh	2010-01-01 21:12:16 UTC (rev 40177)
@@ -18,11 +18,6 @@
 
 echo "Rebuilding Addon menu..."
 
-# clean up old .menu files
-if [ -d "$MENUDIR/gm/addons" ] ; then
-  rm -f "$MENUDIR/gm/addons/"*".menu"
-fi
-
 # just to make sure (startup should have created it)
 mkdir -p "$MENUDIR"
 echo "# generated by grass startup" > "$MENUDIR/xtnmenu.dat"
@@ -39,8 +34,8 @@
 if [ "$CMDLISTG" != "" ] ; then
   for i in $CMDLISTG
   do
-    ftype="`file $BINDIRG/$i`"
-    if [ "`echo $ftype | grep 'Mach-O'`" ] || [ "`grep '#% *Module' $BINDIRG/$i`" ] ; then
+    ftype="`file "$BINDIRG/$i"`"
+    if [ "`echo $ftype | grep 'Mach-O'`" ] || [ "`grep '#% *Module' "$BINDIRG/$i"`" ] ; then
       echo "main:$i:$i:$i" >> "$MENUDIR/xtnmenu.dat"
       CMDGFOUND="1"
     fi
@@ -55,8 +50,8 @@
 if [ "$CMDLIST" != "" ] ; then
   for i in $CMDLIST
   do
-    ftype="`file $BINDIR/$i`"
-    if [ "`echo $ftype | grep 'Mach-O'`" ] || [ "`grep '#% *Module' $BINDIR/$i`" ] ; then
+    ftype="`file "$BINDIR/$i"`"
+    if [ "`echo $ftype | grep 'Mach-O'`" ] || [ "`grep '#% *Module' "$BINDIR/$i"`" ] ; then
       if [ "$CMDFIRST" ] && [ "$CMDGFOUND" ] ; then
         echo "separator" >> "$MENUDIR/xtnmenu.dat"
         CMDFIRST=""



More information about the grass-commit mailing list