From addf44fd1145e310245dae277136abfd359d7fc8 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Wed, 24 Sep 2008 07:07:17 +0000 Subject: [PATCH] added uninstall script for gfceux --- uninstall.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 uninstall.py diff --git a/uninstall.py b/uninstall.py new file mode 100755 index 00000000..423963df --- /dev/null +++ b/uninstall.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +# uninstall script for gfceux +# if gfceux was installed in an non-default prefix, you can specify it +# as an argument +# +# sudo ./uninstall.py [prefix] +# + +import os +import dircache +prefix = "/usr/" +if sys.argv[1]: + prefix == sys.argv[1] + +files = ['share/pixmaps/gfceux.png', 'share/man/man1/gfceux.1', + 'share/applications/gfceux.desktop', 'bin/gfceux'] +for x in dircache.listdir(prefix+"share/gfceux"): + files.append("share/gfceux/"+x) + +for x in files: + os.remove(prefix+x) + +os.rmdir(prefix+"share/gfceux")