extras/uninstall.sh
author Ryan C. Gordon <icculus@icculus.org>
Tue, 02 Feb 2010 23:22:49 -0500
changeset 1041 f7b7996e54f1
permissions -rwxr-xr-x
Added uninstall target for Unix platforms.
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