From debfb3821f4c40f9a9625b76b211c8c6b50e0aac Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 25 Apr 2013 15:54:17 -0400 Subject: beta 3 of librefetch --- src/librefetch/librefetch | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch index b637661..70ff184 100755 --- a/src/librefetch/librefetch +++ b/src/librefetch/librefetch @@ -47,7 +47,7 @@ usage() { } version() { - print "librefetch (libretools) beta 2" + print "librefetch (libretools) beta 3" echo print "Copyright (C) 2013 Luke Shumaksr " print "This is free software; see the source for copying conditions." @@ -71,6 +71,17 @@ main() { fi makepkg="$(modified_makepkg "$(which "${MAKEPKG:-makepkg}")")" + # Mode: version, help ################################################## + + if [[ $mode =~ version ]]; then + version + return 0 + fi + if [[ $mode =~ help ]]; then + usage + return 0 + fi + # Mode: checksums ###################################################### if [[ $mode =~ checksums ]]; then @@ -148,6 +159,8 @@ parse_options() { -D) mode=download;; -g|--geninteg) mode=checksums;; -p) BUILDFILE="$(readlink -m "$opt")";; + -V|--version) mode=version;; + -h|--help) mode=help;; -*) makepkg_opts+=("$arg") $have_opt && makepkg_opts+=("$opt") -- cgit v1.2.2