Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/pacscripts.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pacscripts.sh.in')
-rw-r--r--contrib/pacscripts.sh.in16
1 files changed, 9 insertions, 7 deletions
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 "$@"