Subject: [PATCH 2/3] Prepare for grouped common command list generation

From: [email-masked]
Date: Fri, 1 Dec 2006 22:08:30 +0700

Signed-off-by: Nguyá»…n ThÃ¡i Ngá»c Duy <[email-masked]>
---
 generate-cmdlist.sh |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index 5450918..b45495d 100755
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
@@ -9,7 +9,7 @@ struct cmdname_help
 
 struct cmdname_help common_cmds[] = {"
 
-sort <<\EOF |
+cat <<\EOF |
 add
 apply
 archive
@@ -41,6 +41,11 @@ verify-tag
 EOF
 while read cmd
 do
+     [ -z "$cmd" ] && continue
+     if echo $cmd|grep -q '^G:'; then
+       echo '  {"'$(echo -n $cmd|sed 's/^G://')'",""},'
+       continue
+     fi
      sed -n '
      /NAME/,/git-'"$cmd"'/H
      ${
-- 
1.4.4.rc1.g9124