ソースを参照

a little more menu loc'n

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39086 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 年 前
コミット
f21ac26106
1 ファイル変更13 行追加3 行削除
  1. 13 3
      tools/module_synopsis.sh

+ 13 - 3
tools/module_synopsis.sh

@@ -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 @@ for DIR in bin scripts ; do
 
 #    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 ..