The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# Marpa::R3 is Copyright (C) 2017, Jeffrey Kegler.
#
# This module is free software; you can redistribute it and/or modify it
# under the same terms as Perl 5.10.1. For more details, see the full text
# of the licenses in the directory LICENSES.
#
# This program is distributed in the hope that it will be
# useful, but it is provided “as is” and without any express
# or implied warranties. For details, see the full text of
# of the licenses in the directory LICENSES.

if test -f "$1"
then :
else
   echo $1 is not a file 1>&2
   exit 1
fi
if test -d engine/cf
then :
else
   (echo engine/cf is not a directory;
   echo Are you running this script in the cpan/ directory\?) 1>&2
   exit 1
fi
if test -r "engine/LIB_VERSION"
then :
else
   (echo engine/LIB_VERSION is not a readable file;
   echo Are you running this script in the cpan/ directory\?) 1>&2
   exit 1
fi
lib_version=`cat engine/LIB_VERSION`
(cd engine; tar -xvzf $1)
(cd engine; test -d read_only && rm -rf read_only)
(cd engine; mv libmarpa-$lib_version read_only)
date > engine/read_only/stamp-h1