extras/uninstall.sh
author Ryan C. Gordon <icculus@icculus.org>
Sat, 24 Sep 2011 00:55:15 -0700
changeset 1182 9ba19d71cc4a
parent 1041 f7b7996e54f1
permissions -rwxr-xr-x
Put some include-once and extern "C" blocks in the extras' headers.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1041
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
#!/bin/sh
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
if [ ! -f "./install_manifest.txt" ]; then
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
    echo "ERROR: This needs to be run from your CMake build directory after installing." 1>&2
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
    exit 1
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
fi
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
xargs rm -vf < install_manifest.txt
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
exit 0
f7b7996e54f1 Added uninstall target for Unix platforms.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10