fda1482045
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1090 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
36 lines
689 B
Bash
Executable File
36 lines
689 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo
|
|
echo "Installing Logtalk..."
|
|
|
|
if [ -z "$1" ]; then
|
|
prefix=/usr/local
|
|
else
|
|
prefix="$1"
|
|
fi
|
|
|
|
rm -rf $prefix/lgt2180
|
|
rm -f $prefix/logtalk
|
|
|
|
mkdir $prefix/lgt2180
|
|
|
|
cd ..
|
|
cp -R * $prefix/lgt2180
|
|
|
|
cd $prefix
|
|
chmod -R go-w,a+r lgt2180
|
|
chmod a+x lgt2180
|
|
chmod a+x lgt2180/misc/*.sh
|
|
chmod a+x lgt2180/xml/*.sh
|
|
ln -sf lgt2180 logtalk
|
|
|
|
cd bin
|
|
ln -sf ../lgt2180/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
|