Skip to content

Instantly share code, notes, and snippets.

@panzi
Created August 12, 2014 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panzi/dee6f31ef5be2c3f558e to your computer and use it in GitHub Desktop.
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).
#!/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