diff options
author | 2018-01-29 10:56:17 +0100 | |
---|---|---|
committer | 2018-01-29 10:56:17 +0100 | |
commit | a7b50c64b5374fced1a07d98ab0a86401069d49e (patch) | |
tree | b3914f2d5d101d51034d025fd38b3eb78e04eeb0 /keyword-generation.sh | |
parent | New command to format a GLEP as HTML. (diff) | |
download | ebuild-mode-a7b50c64b5374fced1a07d98ab0a86401069d49e.tar.gz ebuild-mode-a7b50c64b5374fced1a07d98ab0a86401069d49e.tar.bz2 ebuild-mode-a7b50c64b5374fced1a07d98ab0a86401069d49e.zip |
Automatically update keywords in ebuild-mode-keywords.el.
* keyword-generation.sh: Automatically update keywords in
ebuild-mode-keywords.el.
* ebuild-mode-keywords.el: Insert tokens to mark begin and end
of automatically generated keywords.
Diffstat (limited to 'keyword-generation.sh')
-rwxr-xr-x | keyword-generation.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/keyword-generation.sh b/keyword-generation.sh index 629d1a3..015e68d 100755 --- a/keyword-generation.sh +++ b/keyword-generation.sh @@ -27,8 +27,6 @@ has() { return 1 } -echo "Output in ${TMPFILE}" - for (( i = 0; i < ${#ECLASSES[@]}; i++ )); do eclass=${ECLASSES[i]} has ${eclass} ${OBSOLETE} && continue @@ -63,3 +61,8 @@ emacs -q --batch \ (paragraph-start \"^.\")) (fill-region (point-min) (point-max)))" \ --eval "(save-buffer)" --kill + +sed -i -e "/@@KEYWORDS-BEGIN@@/,/@@KEYWORDS-END@@/{//!d} +/@@KEYWORDS-BEGIN@@/r${TMPFILE}" ebuild-mode-keywords.el + +rm "${TMPFILE}" |