diff options
Diffstat (limited to 'www/contao32/DEINSTALL')
-rw-r--r-- | www/contao32/DEINSTALL | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/www/contao32/DEINSTALL b/www/contao32/DEINSTALL new file mode 100644 index 00000000000..b7828d7a598 --- /dev/null +++ b/www/contao32/DEINSTALL @@ -0,0 +1,24 @@ +# $NetBSD: DEINSTALL,v 1.1 2013/11/21 16:52:43 taca Exp $ + +CT_WEBDIR="@PREFIX@/@CT_WEBDIR@" +CT_DIRS="assets system" + +case ${STAGE} in +DEINSTALL) + # remove cache files. + rm -f ${CT_WEBDIR}/assets/css/*.css + rm -f ${CT_WEBDIR}/assets/js/*.js + (cd ${CT_WEBDIR}/system/cache && rm -fr *) + (cd ${CT_WEBDIR}/system/tmp && rm -f *) + ;; +POST-DEINSTALL) + (cd ${CT_WEBDIR} + for d in ${CT_DIRS}; do + for s in $d/*; do + ${RMDIR} $s >/dev/null 2>&1 + done + ${RMDIR} $d >/dev/null 2>&1 + done) + ${RMDIR} ${CT_WEBDIR} >/dev/null 2>&1 + ;; +esac |