[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] allow repeated make uninstall



ChangeSet 1.1389.22.1, 2005/05/13 19:52:52+01:00, smh22@xxxxxxxxxxxxxxxxxxxx

        allow repeated make uninstall
        
        Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx>



 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


diff -Nru a/Makefile b/Makefile
--- a/Makefile  2005-05-13 16:07:59 -04:00
+++ b/Makefile  2005-05-13 16:07:59 -04:00
@@ -158,7 +158,8 @@
 uninstall: DESTDIR=
 uninstall: D=$(DESTDIR)
 uninstall:
-       [ ! -d $(D)/etc/xen ] || mv -f $(D)/etc/xen $(D)/etc/xen.old
+       [ ! -d $(D)/etc/xen.old ] || mv -f $(D)/etc/xen $(D)/etc/xen.old
+       rm -rf $(D)/etc/xen
        rm -rf $(D)/etc/init.d/xend*
        rm -rf $(D)/usr/$(LIBDIR)/libxc* $(D)/usr/$(LIBDIR)/libxutil*
        rm -rf $(D)/usr/lib/python/xen $(D)/usr/include/xen

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.