File: preinst

package info (click to toggle)
pdl 2.005-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,200 kB
  • ctags: 3,301
  • sloc: perl: 14,876; ansic: 7,223; fortran: 3,417; makefile: 54; sh: 16
file content (17 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e
echo Checking for bad files in previous version of pdl.
if [ -d /usr/lib/perl/PDL ] ; then 
   echo bad directory /usr/lib/perl/PDL is present-- removing ...;
   rm -rf /usr/lib/perl/PDL ;
else
   echo good, bad directory /usr/lib/perl/PDL does not exist;
fi
echo Checking for leftover files from previous versions of pdl
if [ -d /usr/lib/perl5/PDL ]; then
    echo Removing /usr/lib/perl5/PDL ...;
    rm -rf /usr/lib/perl5/PDL;
fi


echo Ok, continuing installation of pdl