git.iko.soy/typeable/servant
on release-0.11 help sign in
typeable/servant/scripts/clear-sandbox.sh
26 lines 639 B history raw
1#!/usr/bin/env bash
2#===============================================================================
3#
4# FILE: clear-sandbox.sh
5#
6# USAGE: ./clear-sandbox.sh
7#
8# DESCRIPTION: Clear sandbox at top-level and at all packages
9#
10# REQUIREMENTS: bash >= 4
11#===============================================================================
13set -o nounset
14set -o errexit
16DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
17. "$DIR"/lib/common.sh
19clear_sandbox () {
20 rm -rf .cabal-sandbox cabal.sandbox.config
21 for s in ${SOURCES[@]} ; do
22 (cd "$s" && rm -rf cabal.sandbox.config dist)
23 done
26clear_sandbox