summary refs log tree commit diff
path: root/kde-clean.sh
blob: 3648a1c5b67f81a95cbcddd8591db37e07a7aa3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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