diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-03 11:48:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-03 12:06:13 +0000 |
commit | 2fe29d5829c0973ace1db350141b3c810ac888a7 (patch) | |
tree | b8b07147ef98427aff85136fb4d4961f49baee7f /abuild.in | |
parent | 4e455979e07c0ff0b73ee3b305d1b42e0316528f (diff) | |
download | abuild-2fe29d5829c0973ace1db350141b3c810ac888a7.tar.gz abuild-2fe29d5829c0973ace1db350141b3c810ac888a7.tar.bz2 abuild-2fe29d5829c0973ace1db350141b3c810ac888a7.tar.xz abuild-2fe29d5829c0973ace1db350141b3c810ac888a7.zip |
abuild: chdir to $builddir if it exists
chdir to $builddir before running prepare, build, package or check.
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -594,6 +594,12 @@ runpart() { local part=$1 [ -n "$DEBUG" ] && msg "$part" trap "die '$part failed'" EXIT + if [ -d "$builddir" ]; then + case "$part" in + prepare|build|package|check) + cd "$builddir";; + esac + fi $part trap - EXIT } |