This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/Logtalk/misc/lgt_install.sh

36 lines
689 B
Bash
Raw Normal View History

#!/bin/sh
echo
echo "Installing Logtalk..."
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
rm -rf $prefix/lgt2172
rm -f $prefix/logtalk
mkdir $prefix/lgt2172
cd ..
cp -R * $prefix/lgt2172
cd $prefix
chmod -R go-w,a+r lgt2172
chmod a+x lgt2172
chmod a+x lgt2172/misc/*.sh
chmod a+x lgt2172/xml/*.sh
ln -sf lgt2172 logtalk
cd bin
ln -sf ../lgt2172/misc/cplgtdirs.sh cplgtdirs.sh
echo "Installation completed."
echo "Users should define the environment variable LOGTALKHOME pointing"
echo "to $prefix/logtalk and then run the shell script cplgtdirs.sh in"
echo "order to make a local copy of the Logtalk examples, library, and"
echo "xml directories in ~/logtalk."
echo