Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Makefile: Fix 'clean' rule

In commit 1df0bdd, 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>
  • Loading branch information...
commit 92b297dcc985c3c72d39661626b8ed022e85277a 1 parent 2672a5e
@lelutin lelutin authored apenwarr committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  Makefile
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.