diff options
author | bartus | 2019-06-29 17:12:28 +0200 |
---|---|---|
committer | bartus | 2019-06-29 17:12:28 +0200 |
commit | cdd8c2315639e28bcf93318440ffe33c74977b6e (patch) | |
tree | 01bfbe366f9ca5a28c0e4c23ae9327d5c091bb09 /ccache-ext.install | |
parent | 577bbbfdf8eff15ae48ee4345e987af8a9fe58ac (diff) | |
download | aur-cdd8c2315639e28bcf93318440ffe33c74977b6e.tar.gz |
add post_remove script
delate extra symlinks using libalpm own query
Diffstat (limited to 'ccache-ext.install')
-rw-r--r-- | ccache-ext.install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ccache-ext.install b/ccache-ext.install new file mode 100644 index 000000000000..88b0789b6c03 --- /dev/null +++ b/ccache-ext.install @@ -0,0 +1,12 @@ +# arg 1: the old package version +post_remove() { + # Clear symlinks + echo "Clear extra ccache symlinks..." + for file in /usr/lib/ccache/bin/*; do + if ! pacman -Qo $file >/dev/null 2>&1 + then + echo "remove: $file" + rm $file + fi + done +} |