From 95b3cae91d44be7d23f8f3b906231d43b0b9adfc Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 19 May 2020 14:29:07 +0800 Subject: [PATCH] etc/diskspace/clean-old-stack-libs.sh wrapper shell script --- etc/diskspace/clean-old-stack-libs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 etc/diskspace/clean-old-stack-libs.sh diff --git a/etc/diskspace/clean-old-stack-libs.sh b/etc/diskspace/clean-old-stack-libs.sh new file mode 100644 index 00000000..06216b94 --- /dev/null +++ b/etc/diskspace/clean-old-stack-libs.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ $# != 1 ]; then + echo "Usage: $0 [nightly|lts-xx]" + exit 1 +fi + +popd ~/stackage/automated/work/$1/unpack-dir/.stack-work/install/x86_64-linux/*/*/lib/x86_64-linux-ghc-* + +~/stackage/etc/diskspace/remove-old-stack-work-libs.hs