1 |
commit: 90485bb12fd5ff2b0a01baaedd371e794b778535 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 5 16:43:04 2014 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 5 16:43:04 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=90485bb1 |
7 |
|
8 |
New variable for path of getopt. |
9 |
|
10 |
* emacs-updater (GETOPT): New variable, path of getopt executable. |
11 |
|
12 |
--- |
13 |
ChangeLog | 4 ++++ |
14 |
emacs-updater | 3 ++- |
15 |
2 files changed, 6 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/ChangeLog b/ChangeLog |
18 |
index 86d9d16..642741f 100644 |
19 |
--- a/ChangeLog |
20 |
+++ b/ChangeLog |
21 |
@@ -1,3 +1,7 @@ |
22 |
+2014-06-05 Ulrich Müller <ulm@g.o> |
23 |
+ |
24 |
+ * emacs-updater (GETOPT): New variable, path of getopt executable. |
25 |
+ |
26 |
2014-05-19 Ulrich Müller <ulm@g.o> |
27 |
|
28 |
* emacs-updater: Remove the sitedir action; site-init files are |
29 |
|
30 |
diff --git a/emacs-updater b/emacs-updater |
31 |
index 7b8a965..38c6390 100755 |
32 |
--- a/emacs-updater |
33 |
+++ b/emacs-updater |
34 |
@@ -8,6 +8,7 @@ |
35 |
|
36 |
VERSION=1.13 |
37 |
EMACS=/usr/bin/emacs |
38 |
+GETOPT=/usr/bin/getopt |
39 |
SITELISP=/usr/share/emacs/site-lisp |
40 |
|
41 |
# Default actions |
42 |
@@ -104,7 +105,7 @@ pm_auto() { |
43 |
} |
44 |
|
45 |
# Read in all command-line options and force English output |
46 |
-OPTIONS=$(LC_ALL=C getopt -o a:behmnopP: \ |
47 |
+OPTIONS=$(LC_ALL=C "${GETOPT}" -o a:behmnopP: \ |
48 |
--long action:,batch,color::,colour::,nocolor,nocolour,exact,help,major \ |
49 |
--long orphans,pretend,package-manager:,package-manager-command:,version \ |
50 |
-n 'emacs-updater' -- "$@") \ |