summaryrefslogtreecommitdiffstats
path: root/bin/quilt.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-06-26 22:08:59 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-06-26 22:08:59 +0000
commit02e20196039401bd6ced1aad20a81e60be273f53 (patch)
tree5ff326905663433174197eb0d0d349cf3299fed5 /bin/quilt.in
parent8983dd050e04aa16b1fd2783e667826cea9088fa (diff)
downloadquilt-02e20196039401bd6ced1aad20a81e60be273f53.tar.gz
- Jean Delvare:
+ Add a --version option that prints the program version. + patch_args: Fix comments parsing in series files.
Diffstat (limited to 'bin/quilt.in')
-rw-r--r--bin/quilt.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/quilt.in b/bin/quilt.in
index 53b08f2..38be02d 100644
--- a/bin/quilt.in
+++ b/bin/quilt.in
@@ -21,6 +21,7 @@ usage()
{
echo $"Usage: quilt [--trace[=verbose]] [--quiltrc=XX] command [-h] ..."
+ echo $" quilt --version"
echo $"Commands are:"
quilt_commands \
@@ -36,7 +37,12 @@ Common options to all commands:
--quiltrc file
Use the specified configuration file instead of ~/.quiltrc (or
/etc/quilt.quiltrc if ~/.quiltrc does not exist). See the pdf
- documentation for details about its possible contents."
+ documentation for details about its possible contents.
+
+Special options:
+
+--version
+ Print the version number and exit immediately."
exit 1
}
@@ -52,6 +58,12 @@ quilt_commands()
done
}
+if [ $# -eq 1 -a "$1" == "--version" ]
+then
+ echo '@VERSION@'
+ exit
+fi
+
BASH_OPTS=
while [ $# -ne 0 ]
do