File: libmarpa_test.sh

package info (click to toggle)
libmarpa-r2-perl 12.000000-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,660 kB
  • sloc: perl: 42,628; ansic: 23,387; sh: 4,363; makefile: 157
file content (26 lines) | stat: -rw-r--r-- 583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if test -d "$1"
then :
else
   echo $1 is not a directory 1>&2
   exit 1
fi
if test -d engine/cf
then :
else
   (echo $1 is not a directory;
   echo Are you running this script in the cpan/ directory\?) 1>&2
   exit 1
fi
if test -r "$1/LIB_VERSION"
then :
else
   echo $1/LIBVERSION is not a readable file 1>&2
   exit 1
fi
(cd "$1"; make tar)
lib_version=`cat $1/LIB_VERSION`
tar_file=$1/libmarpa-$lib_version.tar.gz
(cd engine; tar -xvzf $tar_file)
(cd engine; test -d read_only && rm -rf read_only)
(cd engine; mv libmarpa-$lib_version read_only)
date > engine/read_only/stamp-h1