blob: e3fa291eaef1f88b11225b19eefdbfc28794b509 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $NetBSD: deinstall.tmpl,v 1.2 2010/02/03 13:29:37 tron Exp $
case ${STAGE} in
DEINSTALL)
eval `${PERL5} -V:prefix -V:archlib -V:scriptdir`
PERL5_PACKLIST="@PERL5_PACKLIST@"
# Remove the perllocal.pod file.
case "$archlib" in
$prefix/*) archlib="@PREFIX@/${archlib#$prefix/}" ;;
esac
${RM} -f $archlib/perllocal.pod
${RMDIR} -p $archlib 2>/dev/null || ${TRUE}
# Remove any symlinked bits that belong to this module.
$scriptdir/perllink -f -p @PREFIX@ delete ${PERL5_PACKLIST}
# If this is not the perl package, then re-link any perl bits
# back into place.
#
@PERL5_COMMENT@$scriptdir/perllink -p @PREFIX@ add
;;
esac
|