From 0cdd65ec02af63c91873dd068f9ca2d6f8959ca3 Mon Sep 17 00:00:00 2001 From: Eric Bélanger Date: Wed, 24 Oct 2012 15:25:52 -0400 Subject: Add -V/--version option to display version information MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bélanger --- mkinitcpio | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 8e5f9a8..27902f1 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -52,12 +52,19 @@ usage: ${0##*/} [options] -S, --skiphooks Skip specified hooks, comma-separated, during build -s, --save Save build directory. (default: no) -t, --builddir Use DIR as the temporary build directory + -V, --version Display version information and exit -v, --verbose Verbose output (default: no) -z, --compress Use an alternate compressor on the image EOF } +version() { + cat <