From 02e20196039401bd6ced1aad20a81e60be273f53 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Sun, 26 Jun 2005 22:08:59 +0000 Subject: - Jean Delvare: + Add a --version option that prints the program version. + patch_args: Fix comments parsing in series files. --- bin/quilt.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bin/quilt.in') 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 -- cgit