[GRASS-SVN] r39086 - grass/trunk/tools

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 8 18:07:57 EDT 2009


Author: hamish
Date: 2009-09-08 18:07:57 -0400 (Tue, 08 Sep 2009)
New Revision: 39086

Modified:
   grass/trunk/tools/module_synopsis.sh
Log:
a little more menu loc'n

Modified: grass/trunk/tools/module_synopsis.sh
===================================================================
--- grass/trunk/tools/module_synopsis.sh	2009-09-08 21:52:28 UTC (rev 39085)
+++ grass/trunk/tools/module_synopsis.sh	2009-09-08 22:07:57 UTC (rev 39086)
@@ -14,6 +14,8 @@
 #############################################################################
 #
 # PDF output requires the Palatino font.
+# Run this script from the tools/ directory in the souce code.
+#   (TeX needs to be able to find grasslogo_vector.pdf)
 #
 
 if  [ -z "$GISBASE" ] ; then
@@ -96,16 +98,24 @@
 
 #    echo "mod=[$MODULE]  desc=[$desc]"
 
-#    find_menu_hierarchy $MODULE
+    MODULE_MENU_LOC=`find_menu_hierarchy "$MODULE"`
 
     if [ -z "$label" ] && [ -z "$desc" ] ; then
 	continue
     fi
+    BUFF=""
     if [ -z "$label" ] ; then
-	echo "$MODULE: $desc" >> "$TMP"
+	BUFF="$MODULE: $desc"
     else
-	echo "$MODULE: $label" >> "$TMP"
+	BUFF="$MODULE: $label"
     fi
+    if [ -n "$MODULE_MENU_LOC" ] ; then
+        BUFF="$BUFF [$MODULE_MENU_LOC]"
+    fi
+    if [ -n "$BUFF" ] ; then
+       echo "$BUFF" >> "$TMP"
+    fi
+
   done
 
   cd ..



More information about the grass-commit mailing list