freebsd-ports/ports-mgmt/porttools/files/patch-arguments-parsing
2008-09-24 14:56:17 +00:00

90 lines
1.7 KiB
Text

diff -ruN cmd_commit.in.orig cmd_commit.in
--- cmd_commit.in.orig 2006-05-06 15:31:58.000000000 +0400
+++ cmd_commit.in 2008-09-12 21:02:21.000000000 +0400
@@ -33,8 +33,9 @@
fi
set -- $ARGS
-for i
-do
+while [ x"$1" != x"--" -a x"$1" != x"" ]
+do
+ i=$1
case "$i" in
# help
-h)
diff -ruN cmd_diff.in.orig cmd_diff.in
--- cmd_diff.in.orig 2006-05-06 15:31:58.000000000 +0400
+++ cmd_diff.in 2008-09-12 21:02:21.000000000 +0400
@@ -37,8 +37,9 @@
fi
set -- $ARGS
-for i
-do
+while [ x"$1" != x"--" -a x"$1" != x"" ]
+do
+ i=$1
case "$i" in
# help
-h)
diff -ruN cmd_install.in.orig cmd_install.in
--- cmd_install.in.orig 2006-05-06 15:31:58.000000000 +0400
+++ cmd_install.in 2008-09-12 21:02:21.000000000 +0400
@@ -36,8 +36,9 @@
fi
set -- $ARGS
-for i
-do
+while [ x"$1" != x"--" -a x"$1" != x"" ]
+do
+ i=$1
case "$i" in
# help
-h)
diff -ruN cmd_submit.in.orig cmd_submit.in
--- cmd_submit.in.orig 2006-05-06 15:31:58.000000000 +0400
+++ cmd_submit.in 2008-09-12 21:02:21.000000000 +0400
@@ -52,8 +52,9 @@
fi
set -- $ARGS
-for i
-do
+while [ x"$1" != x"--" -a x"$1" != x"" ]
+do
+ i=$1
case "$i" in
# help
-h)
diff -ruN cmd_test.in.orig cmd_test.in
--- cmd_test.in.orig 2006-05-06 15:31:58.000000000 +0400
+++ cmd_test.in 2008-09-12 21:02:21.000000000 +0400
@@ -44,8 +44,9 @@
fi
set -- $ARGS
-for i
-do
+while [ x"$1" != x"--" -a x"$1" != x"" ]
+do
+ i=$1
case "$i" in
-h) # help
usage
diff -ruN cmd_upgrade.in.orig cmd_upgrade.in
--- cmd_upgrade.in.orig 2006-05-06 15:31:58.000000000 +0400
+++ cmd_upgrade.in 2008-09-12 21:02:21.000000000 +0400
@@ -36,8 +36,9 @@
fi
set -- $ARGS
-for i
-do
+while [ x"$1" != x"--" -a x"$1" != x"" ]
+do
+ i=$1
case "$i" in
# help
-h)