summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-08-19 13:22:13 +0000
committerUlrich Müller <ulm@gentoo.org>2008-08-19 13:22:13 +0000
commit81ea2168b979e5e5cefad3bac754a39379113907 (patch)
treed88748b9db3abf0352a2a2bdaf25b1f046e9ef9f
parentOutput number of files found. (diff)
downloademacs-tools-81ea2168b979e5e5cefad3bac754a39379113907.tar.gz
emacs-tools-81ea2168b979e5e5cefad3bac754a39379113907.tar.bz2
emacs-tools-81ea2168b979e5e5cefad3bac754a39379113907.zip
Fix long options. Fix a misspelling.
svn path=/emacs-updater/; revision=1093
-rwxr-xr-xemacs-updater6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs-updater b/emacs-updater
index 31e3a6b..1ea8a12 100755
--- a/emacs-updater
+++ b/emacs-updater
@@ -13,6 +13,8 @@ SITELISP=/usr/share/emacs/site-lisp
TMPFILE="$(mktemp /tmp/emacs-updater.XXXXXX)"
PKGFILE="$(mktemp /tmp/emacs-updater.XXXXXX)"
ACTIONS=
+
+# Default package manager
PM_COMMAND=pm_portage
cat <<-EOF
@@ -37,7 +39,7 @@ usage() {
X -n, --nocolour disable colour in output
X -p, --pretend don't actually emerge packages
X -P, --package-manager <arg>
- X Select a package manager. arg is one out of
+ X select a package manager. arg is one out of
X 'portage' (default), 'pkgcore', or 'paludis'
X -h, --help display this help and exit
EOF
@@ -46,7 +48,7 @@ usage() {
# Read in all command-line options and force English output
OPTIONS=$(LC_ALL=C getopt -o a:hnpP: \
- --long action:,help:,nocolour,pretend,package-manager \
+ --long action:,help,nocolour,pretend,package-manager: \
-n 'emacs-updater' -- "$@")
[ $? -eq 0 ] || usage 1