summaryrefslogtreecommitdiff
path: root/debian/clean.sh
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2009-04-13 11:16:03 +0200
committerReinhard Tartler <siretart@tauware.de>2009-04-13 11:16:03 +0200
commitcf4728a31caa49e8eed7bc60b3f29b359913410e (patch)
tree0ddb4143bcd936e8dd7969c2e5461c996d5e224f /debian/clean.sh
parent2a852880b4c1b982a30a5b9ba565842e222ba4c6 (diff)
rewrite debian/clean.sh to only remove leftover directories
other files are being removed by dh_clean debian/clean file!
Diffstat (limited to 'debian/clean.sh')
-rw-r--r--debian/clean.sh66
1 files changed, 6 insertions, 60 deletions
diff --git a/debian/clean.sh b/debian/clean.sh
index e98398c2..90a30513 100644
--- a/debian/clean.sh
+++ b/debian/clean.sh
@@ -1,62 +1,8 @@
#!/bin/sh
-# small script to cleanup the intermediate build results. The boxbackup
-# upstream build environment seem to not include any mechanism to clean
-# the build tree up.
-#
-# in order to avoid cluttering the package build scripts, this is
-# factored out as a seperate, distribution agnostic cleanup script.
-
-# generated files for removal
-rm -vf aclocal.m4 configure
-rm -vf contrib/*/bbackupd contrib/*/bbstored
-rm -vf lib/common/BoxConfig.h.in test/bbackupd/testfiles/bbackupd.conf
-rm -vf ExceptionCodes.txt infrastructure/BoxPlatform.pm
-rm -vf lib/common/BoxConfig.h runtest.pl
-rm -vf infrastructure/makebuildenv.pl
-rm -vf infrastructure/makedistribution.pl
-rm -vf infrastructure/makeparcels.pl
-rm -vf lib/common/makeexception.pl
-rm -vf lib/common/BoxPortsAndFiles.h
-rm -vf lib/raidfile/raidfile-config
-rm -vf lib/server/makeprotocol.pl
-rm -vf test/backupstorefix/testfiles/testbackupstorefix.pl
-rm -vf test/bbackupd/testfiles/extcheck1.pl
-rm -vf test/bbackupd/testfiles/extcheck2.pl
-rm -vf test/bbackupd/testfiles/notifyscript.pl
-rm -vf test/bbackupd/testfiles/syncallowscript.pl
-rm -vf bin/bbackupd/bbackupd-config
-rm -vf bin/bbackupquery/makedocumentation.pl
-rm -vf bin/bbstored/bbstored-certs
-rm -vf bin/bbstored/bbstored-config
-rm -vf contrib/solaris/bbackupd-manifest.xml
-rm -vf contrib/solaris/bbackupd-smf-method
-rm -vf contrib/solaris/bbstored-manifest.xml
-rm -vf contrib/solaris/bbstored-smf-method
-
-rm -vfr docs/htmlguide/
-rm -vfr docs/man/
-
-find . -name '*.o' | xargs --no-run-if-empty rm -v
-find . -name '*.a' | xargs --no-run-if-empty rm -v
-find . -name '*.mpi' | xargs --no-run-if-empty rm -v
-find . -name 'autogen_*' | xargs --no-run-if-empty rm -v
-find . -name '_*' | xargs --no-run-if-empty rm -v
-find . -name 'test-*.log' | xargs --no-run-if-empty rm -v
-find . -name '*.plist' | xargs --no-run-if-empty rm -v
-find . -name '*.pdf' | xargs --no-run-if-empty rm -v
-
-find bin contrib distribution lib test -name 'Makefile' \
- | xargs --no-run-if-empty rm -v
-
-rm -vf Makefile
-
-# the test scripts do strange things here
-# (directories without write permissions)
-[ ! -d debug ] || chmod -R +rw debug/
-rm -vfr release/ debug/ local/ parcels/
-
-# conf files not found upstream but autogenerated
-rm -vf test/bbackupd/testfiles/bbackupd-exclude.conf
-rm -vf test/bbackupd/testfiles/bbackupd-snapshot.conf
-rm -vf test/bbackupd/testfiles/bbackupd-symlink.conf
+rm -rf debug/
+rm -rf local/
+rm -rf parcels/
+rm -rf release/
+rm -rf docs/htmlguide/
+rm -rf docs/man/