summaryrefslogtreecommitdiff
path: root/core/perl/perl.install
blob: a355c5bbecd15feabd4506e6514c3a3adfa7b7ec (plain)
1
2
3
4
5
6
7
8
9
10
# arg 1:  the new package version
post_install() {
  for ver in 5.8.{0,1,2,3,4,5,6,7,8}; do
    [ -h usr/lib/perl5/$ver ] && rm usr/lib/perl5/$ver
    [ -h usr/lib/perl5/site_perl/$ver ] && rm usr/lib/perl5/site_perl/$ver
    [ -h usr/bin/perl$ver ] && rm usr/bin/perl$ver
  done
  return 0
}