Logtalk 2.24.0 files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1282 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura
2005-04-22 23:57:45 +00:00
parent 08efcbeb64
commit c2e03a81b9
195 changed files with 4005 additions and 1219 deletions

51
Logtalk/scripts/lgt_install.sh Executable file
View File

@@ -0,0 +1,51 @@
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.24.0
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Installing Logtalk..."
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
rm -rf $prefix/lgt2240
rm -f $prefix/logtalk
mkdir $prefix/lgt2240
cd ..
cp -R * $prefix/lgt2240
cd $prefix
chmod -R go-w,a+r lgt2240
chmod a+x lgt2240
chmod a+x lgt2240/scripts/*.sh
chmod a+x lgt2240/xml/*.sh
ln -sf lgt2240 logtalk
mkdir -p bin
cd bin
ln -sf ../lgt2240/scripts/cplgtdirs.sh cplgtdirs
ln -sf ../lgt2240/xml/lgt2pdf.sh lgt2pdf
ln -sf ../lgt2240/xml/lgt2html.sh lgt2html
ln -sf ../lgt2240/xml/lgt2xml.sh lgt2xml
echo "Logtalk installation completed."
echo
echo "Users should define the environment variable LOGTALKHOME pointing"
echo "to $prefix/logtalk and then run the shell script cplgtdirs"
echo "in order to copy the Logtalk user-modifiable files to their home"
echo "directories."
echo
echo "Links to the cplgtdirs, lgt2pdf, lgt2html, and lgt2xml scripts have"
echo "been created on $prefix/bin; you may need to add this directory to"
echo "your execution path."
echo