summaryrefslogtreecommitdiffstats
path: root/abuild.in
diff options
context:
space:
mode:
authorKevin Daudt <me@ikke.info>2019-03-03 19:15:00 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2019-04-29 19:26:43 +0000
commit2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2 (patch)
treec08c37e04320147921c54a2d891ecf25557af0df /abuild.in
parent1d854182dd68a01d6b65cedd860e31bf58af73f4 (diff)
downloadabuild-2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2.tar.bz2
abuild-2e77e3390f4fc4cec14d753d6f1cdee334f1c2c2.tar.xz
abuild-clean: add option to make files writable before cleanup
Some projects might leave files which are not writable for the current user. The cleanup process then fails and leaves files / directories behind. This can easily be fixed by making everything writable before removing the files. Add the option 'chmod-clean' which does just that.
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index dd43822..d0ae691 100644
--- a/abuild.in
+++ b/abuild.in
@@ -77,6 +77,9 @@ want_check() {
}
default_cleanup_srcdir() {
+ if option_has options_has "chmod-clean" && test -d "$srcdir"; then
+ chmod -R +w "$srcdir"
+ fi
rm -rf "$srcdir"
}