diff options
Diffstat (limited to 'kde-clean.sh')
-rwxr-xr-x | kde-clean.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kde-clean.sh b/kde-clean.sh new file mode 100755 index 0000000000..3648a1c5b6 --- /dev/null +++ b/kde-clean.sh @@ -0,0 +1,15 @@ +#!bash +# +# Copyright © 2016-2019 Hartmut Goebel <h.goebel@crazy-compilers.com> +# License: GPLv3 +# +# remove obviously old builds + +./pre-inst-env guix package -A | grep /kde-framework | \ + cut -f 1,2 \ +| while read name version ; do + find /gnu/store -maxdepth 1 -name \*-$name-\* \ + -not -name \*-$version\* \ + -not -name \*.patch +done | \ + xargs guix gc -d |