From 81bdabd2d5078f04e719b3e03ed7f85e101c5194 Mon Sep 17 00:00:00 2001 From: Wouter R Date: Tue, 22 Oct 2013 22:38:42 +0200 Subject: [PATCH] Clean up empty directories on package removal. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 33b5598..d93923f 100644 --- a/Makefile +++ b/Makefile @@ -61,4 +61,18 @@ define Package/doodle3d-client/install $(CP) $(PKG_BUILD_DIR)/www/library $(1)/www/ endef +define Package/doodle3d-client/postrm + # Try to remove all www directories used by the package, and intentionally leave anything non-empty alone + rmdir /www/css + rmdir /www/img/buttons + rmdir /www/img/logo + rmdir /www/img/vertical_shape_icons + rmdir /www/img/webpage_icons + rmdir /www/img + rmdir /www/js/libs + rmdir /www/js + rmdir /www/library/test + rmdir /www/library +endef + $(eval $(call BuildPackage,doodle3d-client))