From 548cf62efdc0a614dd699c6727ea6795f17b3d11 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Fri, 10 Apr 2020 13:04:55 +0200 Subject: Use find to clean the bin dir --- lib/actions/clean.bash | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib') 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" -- cgit v1.1