[BACK]Return to DEINSTALL CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / contao31

File: [cvs.NetBSD.org] / pkgsrc / www / contao31 / Attic / DEINSTALL (download)

Revision 1.1, Thu May 23 15:04:15 2013 UTC (9 years, 8 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2

Adding contao31 package version 3.1.0 (Contao 3.1.0).

This is various improved version from Contao 3.0.  Please refer changes to
<https://contao.org/en/news/contao-3_1_0.html>.

# $NetBSD: DEINSTALL,v 1.1 2013/05/23 15:04:15 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