Created
August 12, 2014 18:16
-
-
Save panzi/dee6f31ef5be2c3f558e to your computer and use it in GitHub Desktop.
A trivial shell script that deletes the files logged in install_manifest.txt (as written by cmake).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -eq 0 ]; then | |
manifest=install_manifest.txt | |
elif [ -d "$1" ]; then | |
manifest="$1/install_manifest.txt" | |
else | |
manifest="$1" | |
fi | |
exec xargs -n 1 -d '\n' -a "$manifest" rm -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment