{"thread":{"id":"21906","subject":"[PATCH 2/2] gitk-git: have make uninstall also remove empty directories","startedAt":"2009-12-08T15:23:54Z","lastAt":"2009-12-08T15:23:54Z","messageCount":1,"participants":["Jan Nieuwenhuizen"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"129552","messageId":"1260285834.1856.53.camel@vuurvlieg","threadId":"21906","inReplyTo":null,"subject":"[PATCH 2/2] gitk-git: have make uninstall also remove empty directories","fromName":"Jan Nieuwenhuizen","fromEmail":"janneke-list@xs4all.nl","sentAt":"2009-12-08T15:23:54Z","receivedAt":"2009-12-08T15:23:54Z","isPatch":true,"sender":{"key":"janneke-list@xs4all.nl","avatar":null},"body":"The default Git install performs a multi-rooted install in $HOME,\nwhich makes manual removal somewhat cumbersome.\n\nThe directories created by the installation should be removed if\nthey are empty.\n\nSigned-off-by: Jan Nieuwenhuizen <janneke@gnu.org>\n---\n gitk-git/Makefile |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/gitk-git/Makefile b/gitk-git/Makefile\nindex e1b6045..d68f19a 100644\n--- a/gitk-git/Makefile\n+++ b/gitk-git/Makefile\n@@ -47,6 +47,8 @@ install:: all\n uninstall::\n \t$(foreach p,$(ALL_MSGFILES), $(RM) '$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) &&) true\n \t$(RM) '$(DESTDIR_SQ)$(bindir_SQ)'/gitk\n+\t-rmdir -p '$(DESTDIR_SQ)$(bindir_SQ)'/gitk\n+\t-rmdir -p '$(DESTDIR_SQ)$(msgsdir_SQ)'\n \n clean::\n \t$(RM) gitk-wish po/*.msg\n-- \n1.6.5.2.182.g1a756\n\n\n\n-- \nJan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter\nAvatar®: http://AvatarAcademy.nl    | http://lilypond.org\n"}]}