]> arthur.barton.de Git - bup.git/commitdiff
Makefile: Fix 'clean' rule bup-0.24b
authorGabriel Filion <lelutin@gmail.com>
Fri, 11 Mar 2011 01:01:30 +0000 (20:01 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 20 Mar 2011 07:40:42 +0000 (00:40 -0700)
In commit 1df0bdd1ad937, I introduced a problem in the make file: the
chmod operation that gives back some permissions on
lib/bup/t/pybuptest.tmp dies if this directory does not exist.

pybuptest.tmp is only created when running the tests.

when the chmod dies, the clean rule stops, thus not completing the
cleanup, so we must make sure this operation is not fatal if the
directory doesn't exist.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Makefile

index 2526726454c7a85de68c177d91bafde3031f471e..61f6e8d151092bb4468dedda7abcd224fedec913 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -146,5 +146,5 @@ clean: Documentation/clean
                *.pyc */*.pyc lib/*/*.pyc lib/*/*/*.pyc \
                bup bup-* cmd/bup-* lib/bup/_version.py randomgen memtest \
                out[12] out2[tc] tags[12] tags2[tc]
-       chmod u+rwx lib/bup/t/pybuptest.tmp
+       [ -d lib/bup/t/pybuptest.tmp ] && chmod u+rwx lib/bup/t/pybuptest.tmp || true
        rm -rf *.tmp t/*.tmp lib/*/*/*.tmp build lib/bup/build