File: test.sh

package info (click to toggle)
changetrack 4.5-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 200 kB
  • ctags: 13
  • sloc: perl: 712; sh: 52; makefile: 49
file content (12 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if [ ! `which perl` ] ; then
    echo "This program requires Perl."
    exit -1
fi

for I in File::NCopy Getopt::Std File::Path
  do
  echo "Checking $I..."
  perl -e "use $I;" 2>/dev/null || echo -e "Perl library '$I' is not installed.\nYou might find it here: http://search.cpan.org/search?query=$I"
done