index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Jason St. John <jstjohn@purdue.edu> | 2013-11-08 02:53:33 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-11-15 11:02:27 +1000 |
commit | a15fd48016014249a13db7a437b5e4f5937f6158 (patch) | |
tree | eecd9c3717fcb05d58983ce89f4d3778502f0cc4 /contrib/pacscripts.sh.in | |
parent | 7bfaa358ea45c5d527a382bb5fef734b3134bd6f (diff) |
-rw-r--r-- | contrib/pacscripts.sh.in | 16 |
diff --git a/contrib/pacscripts.sh.in b/contrib/pacscripts.sh.in index 62c4e35b..8453f9c8 100644 --- a/contrib/pacscripts.sh.in +++ b/contrib/pacscripts.sh.in @@ -46,16 +46,18 @@ error() { } usage() { - echo "This program prints out the {pre,post}_{install,remove,upgrade} scripts" - echo "of a given package." - echo "Usage: $myname pkgname|pkgfile" + echo "${myname} (pacman) v${myver}" echo - echo " OPTIONS:" + echo "Prints the {pre,post}_{install,remove,upgrade} scripts of a given package." + echo + echo "Usage: ${myname} <pkgname|pkgfile>" + echo + echo " Options:" echo " -h, --help Print this help message" echo " -v, --version Print program name and version" echo - echo "Example: $myname gconf-editor" - echo "Example: $myname gconf-editor-2.24.1-1-x86_64.pkg.tar.gz" + echo "Example: ${myname} gconf-editor" + echo "Example: ${myname} gconf-editor-3.0.1-3-x86_64.pkg.tar.xz" } version() { @@ -70,7 +72,7 @@ spacman() { else if ! type -p sudo; then error "Cannot find the sudo binary! Is sudo installed?" - error "Otherwise try to run the program as root" + error "Otherwise, try to run the program as root" exit 1 else sudo pacman "$@" |