aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-06-05 18:43:04 +0200
committerUlrich Müller <ulm@gentoo.org>2014-06-05 18:43:04 +0200
commit90485bb12fd5ff2b0a01baaedd371e794b778535 (patch)
treeda7b4567399ae4c63fb6765b643ec8f2b3059f90
parentDo not mention "wrong location" in description. (diff)
downloademacs-tools-90485bb12fd5ff2b0a01baaedd371e794b778535.tar.gz
emacs-tools-90485bb12fd5ff2b0a01baaedd371e794b778535.tar.bz2
emacs-tools-90485bb12fd5ff2b0a01baaedd371e794b778535.zip
New variable for path of getopt.
* emacs-updater (GETOPT): New variable, path of getopt executable.
-rw-r--r--ChangeLog4
-rwxr-xr-xemacs-updater3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 86d9d16..642741f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-05 Ulrich Müller <ulm@gentoo.org>
+
+ * emacs-updater (GETOPT): New variable, path of getopt executable.
+
2014-05-19 Ulrich Müller <ulm@gentoo.org>
* emacs-updater: Remove the sitedir action; site-init files are
diff --git a/emacs-updater b/emacs-updater
index 7b8a965..38c6390 100755
--- a/emacs-updater
+++ b/emacs-updater
@@ -8,6 +8,7 @@
VERSION=1.13
EMACS=/usr/bin/emacs
+GETOPT=/usr/bin/getopt
SITELISP=/usr/share/emacs/site-lisp
# Default actions
@@ -104,7 +105,7 @@ pm_auto() {
}
# Read in all command-line options and force English output
-OPTIONS=$(LC_ALL=C getopt -o a:behmnopP: \
+OPTIONS=$(LC_ALL=C "${GETOPT}" -o a:behmnopP: \
--long action:,batch,color::,colour::,nocolor,nocolour,exact,help,major \
--long orphans,pretend,package-manager:,package-manager-command:,version \
-n 'emacs-updater' -- "$@") \