| git.druid.rocks | index | druid520 | ports | ports/ | build-tools/ | cmake/ | del.sh |
ports/build-tools/cmake/del.sh
set -e
# remove: runs BEFORE add.sh ever (re-)clones a checkout on a
# "reinstall" (and after "mp clean cmake" wipes a stale one too), so
# this checkout may genuinely not exist at this point -- same class of
# bug already found and fixed in classes/cmake.mp (which this port
# can't just inherit=: cmake's own ./bootstrap combines configure and
# build into one step with no separate ./configure after it, unlike
# what any of the six existing classes assume). a no-op here is fine
# either way: mp's own manifest sweep (pkg_manifest_cleanup, on by
# default here) still deletes every file add.sh actually installed.
cd cmake 2>/dev/null || exit 0
[ -f install_manifest.txt ] && xargs rm -f < install_manifest.txt
cd ..
rm -rf cmake