aboutsummaryrefslogtreecommitdiffstats
path: root/admin/update_autogen
diff options
context:
space:
mode:
authorStefan Monnier2014-11-16 00:22:20 -0500
committerStefan Monnier2014-11-16 00:22:20 -0500
commit9075fcc1937a211bc91e8bc49c332bc55ac99e24 (patch)
tree1cff4991107011e0b5d13fac46b0881c30d31a63 /admin/update_autogen
parent86009dd5d886f1101358990e4f8f69a5d1467eb8 (diff)
parent4f4cf9c855f5818d4c3c0fb772db8bbcf4f33780 (diff)
downloademacs-9075fcc1937a211bc91e8bc49c332bc55ac99e24.tar.gz
emacs-9075fcc1937a211bc91e8bc49c332bc55ac99e24.zip
Merge from emacs-24
Diffstat (limited to 'admin/update_autogen')
-rwxr-xr-xadmin/update_autogen13
1 files changed, 11 insertions, 2 deletions
diff --git a/admin/update_autogen b/admin/update_autogen
index 8b0ae67028a..4c4f52e2d2d 100755
--- a/admin/update_autogen
+++ b/admin/update_autogen
@@ -47,7 +47,9 @@ cd $PD
47cd ../ 47cd ../
48[ -d admin ] || die "Could not locate admin directory" 48[ -d admin ] || die "Could not locate admin directory"
49 49
50if [ -d .git ]; then 50if [ -d .bzr ]; then
51 vcs=bzr
52elif [ -d .git ]; then
51 vcs=git 53 vcs=git
52else 54else
53 die "Cannot determine vcs" 55 die "Cannot determine vcs"
@@ -303,6 +305,9 @@ EOF
303 305
304 modified=$(status $basegen) || die 306 modified=$(status $basegen) || die
305 307
308 ## bzr status output is always relative to top-level, not PWD.
309 [ "$vcs" = "bzr" ] && cd $oldpwd
310
306 commit "generated" $modified || die "commit error" 311 commit "generated" $modified || die "commit error"
307 312
308 exit 0 313 exit 0
@@ -374,7 +379,11 @@ echo "Checking status of loaddef files..."
374## It probably would be fine to just check+commit lisp/, since 379## It probably would be fine to just check+commit lisp/, since
375## making autoloads should not effect any other files. But better 380## making autoloads should not effect any other files. But better
376## safe than sorry. 381## safe than sorry.
377modified=$(status $genfiles $ldefs_out) || die 382modified=$(status $genfiles ${ldefs_out#lisp/}) || die
383
384
385## bzr status output is always relative to top-level, not PWD.
386[ "$vcs" = "bzr" ] && cd ../
378 387
379 388
380commit "loaddefs" $modified || die "commit error" 389commit "loaddefs" $modified || die "commit error"