mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
Clean up empty directories on package removal.
This commit is contained in:
parent
db4ed0df8a
commit
81bdabd2d5
14
Makefile
14
Makefile
@ -61,4 +61,18 @@ define Package/doodle3d-client/install
|
|||||||
$(CP) $(PKG_BUILD_DIR)/www/library $(1)/www/
|
$(CP) $(PKG_BUILD_DIR)/www/library $(1)/www/
|
||||||
endef
|
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))
|
$(eval $(call BuildPackage,doodle3d-client))
|
||||||
|
Loading…
Reference in New Issue
Block a user