summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2008-06-21 16:27:57 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-19 01:13:34 +0200
commit024c34eb4ed26fc48f8cfc7c36887145d6cca3fd (patch)
tree304e9f58c9626550ee6120e3792216c2f832b7d6
parentbd8a638e9caa2fa508f8865d9532c821f81fa909 (diff)
downloadndim-git-utils-024c34eb4ed26fc48f8cfc7c36887145d6cca3fd.tar.gz
ndim-git-utils-024c34eb4ed26fc48f8cfc7c36887145d6cca3fd.tar.xz
ndim-git-utils-024c34eb4ed26fc48f8cfc7c36887145d6cca3fd.zip
git-amb: Let purge[-all] remove RO files, dirs
-rw-r--r--NEWS3
-rwxr-xr-xgit-amb/git-amb.in2
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 885f992..5a29582 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
ndim-git-utils 1.17.39
* FIXME
+ * git-amb:
+ * The 'purge' and 'purge-all' commands now remove
+ read-only files and dirs.
ndim-git-utils 1.17
New:
diff --git a/git-amb/git-amb.in b/git-amb/git-amb.in
index 0adceb6..d71f3c0 100755
--- a/git-amb/git-amb.in
+++ b/git-amb/git-amb.in
@@ -135,6 +135,7 @@ amb_printvars() {
amb_purge() {
echo "$self: Purging branch ${git_branch} build and install"
echo "$self: Purging $top_builddir..."
+ if test -d "$top_builddir"; then chmod -R u+w "$top_builddir"; fi
rm -rf "$top_builddir"
echo "$self: Purging $top_installdir..."
rm -rf "$top_installdir"
@@ -144,6 +145,7 @@ amb_purge() {
amb_purge_all() {
echo "$self: Purging ALL branches"
echo "$self: Purging $amb_builddir..."
+ if test -d "$amb_builddir"; then chmod -R u+w "$amb_builddir"; fi
rm -rf "$amb_builddir"
echo "$self: Purging $amb_installdir..."
rm -rf "$amb_installdir"