| git.druid.rocks | index | druid520 | mp | mk/ | c.sh |
mk/c.sh
. ./mk.conf
set -e
# glob for whatever "mp.*" actually exists on disk, rather than
# re-deriving names from the CURRENT $src/*.pl/plugins.list -- a command
# or plugin renamed/removed since the last build has no source file left
# to derive its old name from, so that derivation-based approach leaves
# its symlink orphaned forever, surviving even a full clean. rm -f on an
# unmatched glob is a harmless no-op (the shell passes the literal
# pattern through, and -f suppresses the "no such file" error). *.example
# files (mp.conf.example) are excluded: the same glob would otherwise
# match and silently delete a tracked file every clean.
rm -rf $out mpx mp mplib
for f in mp.*; do
[ -e "$f" ] || continue
case "$f" in
*.example) continue ;;
esac
rm -f "$f"
done
rm -f plugins.list