diff options
Diffstat (limited to 'admin')
-rwxr-xr-x | admin/update_autogen | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/admin/update_autogen b/admin/update_autogen index f27bfe0d148..98be4ed8fe0 100755 --- a/admin/update_autogen +++ b/admin/update_autogen @@ -92,7 +92,7 @@ changelog_flag= ## Parameters. ldefs_in=lisp/loaddefs.el -ldefs_out=lisp/ldefs-boot.el +ldefs_boot=lisp/ldefs-boot.el changelog_n=$(sed -n 's/CHANGELOG_HISTORY_INDEX_MAX *= *//p' Makefile.in) changelog_files="ChangeLog.$changelog_n" sources="configure.ac lib/Makefile.am" @@ -370,19 +370,12 @@ echo "Running lisp/ make..." make -C lisp "$@" autoloads EMACS=../src/bootstrap-emacs || die "make src error" - -## Ignore comment differences. -[ ! "$lboot_flag" ] || \ - diff -q -I '^;' $ldefs_in $ldefs_out || \ - cp $ldefs_in $ldefs_out || die "cp ldefs_boot error" - - echo "Checking status of loaddef files..." ## It probably would be fine to just check+commit lisp/, since ## making autoloads should not effect any other files. But better ## safe than sorry. -modified=$(status $genfiles $ldefs_out) || die +modified=$(status $genfiles) || die commit "loaddefs" $modified || die "commit error" @@ -396,6 +389,14 @@ commit "loaddefs" $modified || die "commit error" } + +## Regenerate ldefs-boot if we are told to +[ ! "$lboot_flag" ] || { + make generate-ldefs-boot || die + modified=$(status $ldefs_boot) || die + commit $ldefs_boot $modified || die "commit error" +} + exit 0 ### update_autogen ends here |