1 |
Author: ulm |
2 |
Date: 2011-12-31 14:32:38 +0000 (Sat, 31 Dec 2011) |
3 |
New Revision: 1711 |
4 |
|
5 |
Modified: |
6 |
gentoo-syntax/ChangeLog |
7 |
gentoo-syntax/keyword-generation.sh |
8 |
Log: |
9 |
Set C locale for grep. Reformat output. |
10 |
|
11 |
Modified: gentoo-syntax/ChangeLog |
12 |
=================================================================== |
13 |
--- gentoo-syntax/ChangeLog 2011-12-30 15:44:38 UTC (rev 1710) |
14 |
+++ gentoo-syntax/ChangeLog 2011-12-31 14:32:38 UTC (rev 1711) |
15 |
@@ -1,3 +1,7 @@ |
16 |
+2011-12-31 Ulrich Mueller <ulm@g.o> |
17 |
+ |
18 |
+ * keyword-generation.sh: Set C locale for grep. Reformat output. |
19 |
+ |
20 |
2011-12-30 Christian Faulhammer <fauli@g.o> |
21 |
|
22 |
* ebuild-mode-keywords.el: All keywords are now from a |
23 |
|
24 |
Modified: gentoo-syntax/keyword-generation.sh |
25 |
=================================================================== |
26 |
--- gentoo-syntax/keyword-generation.sh 2011-12-30 15:44:38 UTC (rev 1710) |
27 |
+++ gentoo-syntax/keyword-generation.sh 2011-12-31 14:32:38 UTC (rev 1711) |
28 |
@@ -25,8 +25,18 @@ |
29 |
for eclass in ${ECLASSES} |
30 |
do |
31 |
echo '(defvar ebuild-mode-keywords-'${eclass//.eclass/} >>${TMPFILE} |
32 |
- echo -n \'\(\($(grep '^[a-Z_-.0-9]*()' $(portageq portdir)/eclass/${eclass}|sed -e 's:\(^.*\)().*:"\1":g')\)>>${TMPFILE} |
33 |
+ echo -n \'\(\($(LC_ALL=C grep '^[A-Za-z0-9._-]*()' $(portageq portdir)/eclass/${eclass}|sed -e 's:\(^.*\)().*:"\1":g')\)>>${TMPFILE} |
34 |
echo >>${TMPFILE} |
35 |
echo font-lock-type-face\)\)>>${TMPFILE} |
36 |
echo >>${TMPFILE} |
37 |
done |
38 |
+ |
39 |
+emacs -q --batch \ |
40 |
+ --visit ${TMPFILE} \ |
41 |
+ --eval "(emacs-lisp-mode)" \ |
42 |
+ --eval "(indent-region (point-min) (point-max))" \ |
43 |
+ --eval "(let ((fill-column 78) |
44 |
+ (fill-indent-according-to-mode t) |
45 |
+ (paragraph-start \"^.\")) |
46 |
+ (fill-region (point-min) (point-max)))" \ |
47 |
+ --eval "(save-buffer)" --kill |