]> arthur.barton.de Git - bup.git/commitdiff
Unmount and remove testfs instances correctly during make clean.
authorRob Browning <rlb@defaultvalue.org>
Sun, 3 Jun 2012 17:18:18 +0000 (12:18 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 22 Dec 2012 01:53:16 +0000 (19:53 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Makefile

index d70ed637a6801a59f9bcd40a7e0683fe676e1544..99248cbfdd2f3cc90d837748474ad2472e57b499 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -156,6 +156,8 @@ clean: Documentation/clean
                bup bup-* cmd/bup-* lib/bup/_version.py randomgen memtest \
                out[12] out2[tc] tags[12] tags2[tc] \
                testfs.img lib/bup/t/testfs.img
-       rm -rf *.tmp t/*.tmp lib/*/*/*.tmp build lib/bup/build
-       if test -e testfs; then rmdir testfs; fi
-       if test -e lib/bup/t/testfs; then rmdir lib/bup/t/testfs; fi
+       if test -e bupmeta.tmp/testfs; \
+         then umount bupmeta.tmp/testfs || true; fi
+       if test -e lib/bup/t/testfs; \
+         then umount lib/bup/t/testfs || true; fi
+       rm -rf *.tmp t/*.tmp lib/*/*/*.tmp build lib/bup/build lib/bup/t/testfs