summaryrefslogtreecommitdiff
path: root/admin/update_autogen
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-06-29 17:01:51 -0700
committerGlenn Morris <rgm@gnu.org>2014-06-29 17:01:51 -0700
commitf9bae01ee8a7be0e4e992ef3ce856b31d32019c9 (patch)
treea61be70d562b07db553d2fdcbabaf94cef06b8e5 /admin/update_autogen
parent87ed944822b8616396bd1b16257b7f299047c1a3 (diff)
downloademacs-f9bae01ee8a7be0e4e992ef3ce856b31d32019c9.tar.gz
* update_autogen: Find loaddefs targets rather than parsing lisp/Makefile.in
* lisp/Makefile.in: Comment.
Diffstat (limited to 'admin/update_autogen')
-rwxr-xr-xadmin/update_autogen12
1 files changed, 8 insertions, 4 deletions
diff --git a/admin/update_autogen b/admin/update_autogen
index 90431fa6301..ef0edfef50c 100755
--- a/admin/update_autogen
+++ b/admin/update_autogen
@@ -322,15 +322,19 @@ EOF
echo "Finding loaddef targets..."
-sed -n -e '/^AUTOGEN_VCS/,/^$/p' lisp/Makefile.in | \
- sed -e '/AUTOGEN_VCS/d' -e '/^$/d' -e 's/\\//' \
- >| $tempfile || die "sed error"
+find lisp -name '*.el' -exec grep '^;.*generated-autoload-file:' {} + | \
+ sed -e '/loaddefs\|esh-groups/d' -e 's|/[^/]*: "|/|' -e 's/"//g' \
+ >| $tempfile || die "Error finding targets"
genfiles=
while read genfile; do
- genfile=lisp/$genfile
+ ## Or we can just use sort -u when making tempfile...
+ case " $genfiles " in
+ *" $genfile "*) continue ;;
+ esac
+
[ -r $genfile ] || die "Unable to read $genfile"
genfiles="$genfiles $genfile"