* admin/update_autogen: Remove need to cd into/out of lisp/.

This commit is contained in:
Glenn Morris 2014-06-28 18:33:32 -07:00
parent a1212016db
commit 51a0825e84
2 changed files with 5 additions and 8 deletions

View file

@ -1,5 +1,7 @@
2014-06-29 Glenn Morris <rgm@gnu.org>
* update_autogen: Remove need to cd into/out of lisp/.
* grammars/Makefile.in (bootstrap-clean): Don't delete Makefile,
for sake of top-level maintainer-clean rule.

View file

@ -330,7 +330,8 @@ genfiles=
while read genfile; do
[ -r lisp/$genfile ] || die "Unable to read $genfile"
genfile=lisp/$genfile
[ -r $genfile ] || die "Unable to read $genfile"
genfiles="$genfiles $genfile"
done < $tempfile
@ -369,18 +370,12 @@ make -C lisp "$@" autoloads EMACS=../src/bootstrap-emacs || die "make src error"
cp $ldefs_in $ldefs_out || die "cp ldefs_boot error"
cd lisp
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#lisp/}) || die
## bzr status output is always relative to top-level, not PWD.
[ "$vcs" = "bzr" ] && cd ../
modified=$(status $genfiles $ldefs_out) || die
commit "loaddefs" $modified || die "commit error"