aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-08-16 21:28:47 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-08-16 21:28:47 +0200
commitc2859d3c59b34fa1a188e2020fee3eba350abdce (patch)
tree83289f7bac848d710abaf08817b7198b83eef7f7
parent903a47e74bae60ce9ba4bf4884040363b6aaa79c (diff)
downloadvcs-rebuild-c2859d3c59b34fa1a188e2020fee3eba350abdce.tar.xz
Add script to clean out old packages
-rwxr-xr-xclean_built_package_dir6
1 files changed, 6 insertions, 0 deletions
diff --git a/clean_built_package_dir b/clean_built_package_dir
new file mode 100755
index 0000000..150c335
--- /dev/null
+++ b/clean_built_package_dir
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+source "$HOME"/.makepkg.conf
+
+find -L "$REPODIR" -type l
+paccache -c "$PKGDEST" -k2 -r