diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-04-10 13:04:55 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-04-10 13:04:55 +0200 |
commit | 548cf62efdc0a614dd699c6727ea6795f17b3d11 (patch) | |
tree | c7a5f0e86d8efa836740773c553a935f6aa0023e | |
parent | 3dacddd1769648fdd2e39f759c0dbb844ab7032e (diff) |
Use find to clean the bin dir
-rw-r--r-- | lib/actions/clean.bash | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/actions/clean.bash b/lib/actions/clean.bash index dcf1e5a..bb5d984 100644 --- a/lib/actions/clean.bash +++ b/lib/actions/clean.bash @@ -1,5 +1,10 @@ #!/usr/bin/env bash +RSTAR_DEPS_BIN+=( + find + rm +) + action() { local OPTIND local clean_src @@ -14,9 +19,7 @@ action() { shift $(( OPTIND - 1 )) - shopt -s extglob - - rm -fr -- "!($BASEDIR/bin/rstar)" + find "$BASEDIR/bin" ! -name rstar -type f -exec rm -f {} + rm -fr -- "$BASEDIR/dist" rm -fr -- "$BASEDIR/include" rm -fr -- "$BASEDIR/lib/libmoar.so" |