{"thread":{"id":"7100","subject":"[PATCH 1/1] Guilt: Added an uninstall target","startedAt":"2007-03-06T03:31:09Z","lastAt":"2007-03-06T03:47:55Z","messageCount":2,"participants":["Nur Hussein","Josef Sipek"],"isPatch":true,"patchVersion":1,"patchTotal":1},"messages":[{"id":"36412","messageId":"1173151869.4877.15.camel@gandalf.dcc.usm.my","threadId":"7100","inReplyTo":null,"subject":"[PATCH 1/1] Guilt: Added an uninstall target","fromName":"Nur Hussein","fromEmail":"hussein@cs.usm.my","sentAt":"2007-03-06T03:31:09Z","receivedAt":"2007-03-06T03:31:09Z","isPatch":true,"sender":{"key":"hussein@cs.usm.my","avatar":null},"body":"Invoking make uninstall will remove guilt files from installed directory.\n\nSigned-off-by: Nur Hussein <hussein@cs.usm.my>\n---\n Makefile  |    4 ++++\n uninstall |   18 ++++++++++++++++++\n 2 files changed, 22 insertions(+), 0 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex 828e73f..eb5fc2e 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -32,6 +32,10 @@ install:\n \tinstall -d $(PREFIX)/bin/\n \tinstall -m 755 $(SCRIPTS) $(PREFIX)/bin/\n \n+.PHONY: uninstall\n+uninstall:\n+       ./uninstall $(PREFIX)/bin/ $(SCRIPTS)\n+\n .PHONY: doc\n doc:\n \t$(MAKE) -C Documentation all\ndiff --git a/uninstall b/uninstall\nnew file mode 100755\nindex 0000000..aa2e127\n--- /dev/null\n+++ b/uninstall\n@@ -0,0 +1,18 @@\n+#!/bin/bash\n+#\n+# Copyright (c) 2007 Nur Hussein <hussein@cs.usm.my>\n+#\n+\n+if [ $# -lt 2 ]; then\n+\techo \"Usage: $0 <prefix> <file1> <file2> ...\" >&2\n+\texit 1\n+fi\n+\n+PRE=$1\n+\n+shift\n+\n+for x in \"$@\"\n+do\n+\trm \"$PRE/$x\"\n+done\n-- \n1.4.4.4\n\n\n-- \nThis message has been scanned for viruses and\ndangerous content by MailScanner, and is\nbelieved to be clean.\n"},{"id":"36413","messageId":"20070306034755.GA15701@filer.fsl.cs.sunysb.edu","threadId":"7100","inReplyTo":"1173151869.4877.15.camel@gandalf.dcc.usm.my","subject":"Re: [PATCH 1/1] Guilt: Added an uninstall target - uninstall in git?","fromName":"Josef Sipek","fromEmail":"jsipek@fsl.cs.sunysb.edu","sentAt":"2007-03-06T03:47:55Z","receivedAt":"2007-03-06T03:47:55Z","isPatch":true,"sender":{"key":"jsipek@fsl.cs.sunysb.edu","avatar":null},"body":"On Tue, Mar 06, 2007 at 11:31:09AM +0800, Nur Hussein wrote:\n> Invoking make uninstall will remove guilt files from installed directory.\n \nI glanced at git to see what it does with respect to uninstall, and unless I\ncompletely missed it, it just doesn't support it. Is there any reason for\nthat? Maybe a similar patch to git would be in order?\n\nAnd yes, I do understand that once you install git, there's no way you'd\nwant to uninstall it :)\n\nJosef \"Jeff\" Sipek.\n\n-- \nThe reasonable man adapts himself to the world; the unreasonable one\npersists in trying to adapt the world to himself. Therefore all progress\ndepends on the unreasonable man.\n\t\t- George Bernard Shaw\n"}]}