diff options
| author | Stefan Monnier | 2014-11-16 00:22:20 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-11-16 00:22:20 -0500 |
| commit | 9075fcc1937a211bc91e8bc49c332bc55ac99e24 (patch) | |
| tree | 1cff4991107011e0b5d13fac46b0881c30d31a63 /admin/update_autogen | |
| parent | 86009dd5d886f1101358990e4f8f69a5d1467eb8 (diff) | |
| parent | 4f4cf9c855f5818d4c3c0fb772db8bbcf4f33780 (diff) | |
| download | emacs-9075fcc1937a211bc91e8bc49c332bc55ac99e24.tar.gz emacs-9075fcc1937a211bc91e8bc49c332bc55ac99e24.zip | |
Merge from emacs-24
Diffstat (limited to 'admin/update_autogen')
| -rwxr-xr-x | admin/update_autogen | 13 |
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 | |||
| 47 | cd ../ | 47 | cd ../ |
| 48 | [ -d admin ] || die "Could not locate admin directory" | 48 | [ -d admin ] || die "Could not locate admin directory" |
| 49 | 49 | ||
| 50 | if [ -d .git ]; then | 50 | if [ -d .bzr ]; then |
| 51 | vcs=bzr | ||
| 52 | elif [ -d .git ]; then | ||
| 51 | vcs=git | 53 | vcs=git |
| 52 | else | 54 | else |
| 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. |
| 377 | modified=$(status $genfiles $ldefs_out) || die | 382 | modified=$(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 | ||
| 380 | commit "loaddefs" $modified || die "commit error" | 389 | commit "loaddefs" $modified || die "commit error" |