This is an automated email from the git hooks/post-receive script.

arand-guest pushed a commit to branch debdir
in repository redeclipse.

commit 86755f3d7bbc8ac34746c2ca72728f6be6c15205
Author: Arand Nash <[email protected]>
Date:   Thu Apr 14 21:46:52 2011 +0100

    scripts display manpage with --help
---
 scripts/redeclipse        | 10 +++++++++-
 scripts/redeclipse-server | 11 ++++++++++-
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/scripts/redeclipse b/scripts/redeclipse
index a49ba7b..b8d7e1e 100644
--- a/scripts/redeclipse
+++ b/scripts/redeclipse
@@ -1,5 +1,13 @@
 #!/bin/sh
+for arg
+do
+    if [ "$arg" = --help ]
+    then
+       exec man redeclipse
+    fi
+done
 
 RE_OPTIONS="-r"
 cd /usr/lib/games/redeclipse
-exec ./reclient ${RE_OPTIONS} "$@"
+exec ./reclient ${RE_OPTIONS} ${1+"$@"}
+# ${1+"$@"} is a portability hack, keyword "wrapper script"
diff --git a/scripts/redeclipse-server b/scripts/redeclipse-server
index b8535d8..80a6145 100644
--- a/scripts/redeclipse-server
+++ b/scripts/redeclipse-server
@@ -1,4 +1,13 @@
 #!/bin/sh
+for arg
+do
+    if [ "$arg" = --help ]
+    then
+       exec man redeclipse
+    fi
+done
+
 RE_OPTIONS=""
 cd /usr/lib/games/redeclipse
-exec ./reserver ${RE_OPTIONS} "$@"
+exec ./reserver ${RE_OPTIONS} ${1+"$@"}
+# ${1+"$@"} is a portability hack, keyword "wrapper script"

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/redeclipse.git

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to