]> git.eshelyaron.com Git - emacs.git/commitdiff
* update_autogen: Find loaddefs targets rather than parsing lisp/Makefile.in
authorGlenn Morris <rgm@gnu.org>
Mon, 30 Jun 2014 00:01:51 +0000 (17:01 -0700)
committerGlenn Morris <rgm@gnu.org>
Mon, 30 Jun 2014 00:01:51 +0000 (17:01 -0700)
* lisp/Makefile.in: Comment.

admin/ChangeLog
admin/update_autogen
lisp/Makefile.in

index fc58259443fa2d05e6ffb32e1fcfa247451f39cd..a20e93d38c2378a5d9eff6da70e657592a015168 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-30  Glenn Morris  <rgm@gnu.org>
+
+       * update_autogen: Find loaddefs targets rather than
+       parsing lisp/Makefile.in
+
 2014-06-29  Glenn Morris  <rgm@gnu.org>
 
        * update_autogen: Remove need to cd into/out of lisp/.
index 90431fa63014b5ded3b96c3891f941ec28bcd42e..ef0edfef50c0f6b6c74488be218ed892e387714d 100755 (executable)
@@ -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"
index fefbd5cda56adcbf44cb8fa9c81543375505375c..45a964b0d70931d0df85986c4086c2ed391a81cc 100644 (file)
@@ -71,7 +71,6 @@ AUTOGENEL = loaddefs.el \
        org/org-loaddefs.el
 
 # Versioned files that are the value of someone's `generated-autoload-file'.
-# Note that update_loaddefs parses this.
 AUTOGEN_VCS = \
        ps-print.el \
        obsolete/tpu-edt.el \