| 1 |
if test -d "$1" |
| 2 |
then : |
| 3 |
else |
| 4 |
echo $1 is not a directory 1>&2 |
| 5 |
exit 1 |
| 6 |
fi |
| 7 |
if test -d engine/cf |
| 8 |
then : |
| 9 |
else |
| 10 |
(echo $1 is not a directory; |
| 11 |
echo Are you running this script in the cpan/ directory\?) 1>&2 |
| 12 |
exit 1 |
| 13 |
fi |
| 14 |
if test -r "$1/LIB_VERSION" |
| 15 |
then : |
| 16 |
else |
| 17 |
echo $1/LIBVERSION is not a readable file 1>&2 |
| 18 |
exit 1 |
| 19 |
fi |
| 20 |
(cd "$1"; make tar) |
| 21 |
lib_version=`cat $1/LIB_VERSION` |
| 22 |
tar_file=$1/libmarpa-$lib_version.tar.gz |
| 23 |
(cd engine; tar -xvzf $tar_file) |
| 24 |
(cd engine; test -d read_only && rm -rf read_only) |
| 25 |
(cd engine; mv libmarpa-$lib_version read_only) |
| 26 |
date > engine/read_only/stamp-h1 |