2004-04-26 00:57:46 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-08-16 17:41:11 +01:00
|
|
|
## =================================================================
|
|
|
|
## Logtalk - Object oriented extension to Prolog
|
2004-12-05 21:52:49 +00:00
|
|
|
## Release 2.22.1
|
2004-08-16 17:41:11 +01:00
|
|
|
##
|
|
|
|
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
|
|
|
## =================================================================
|
|
|
|
|
2004-04-26 00:57:46 +01:00
|
|
|
echo
|
2004-11-29 20:36:31 +00:00
|
|
|
echo "This script copies the Logtalk user-modifiable files and directories"
|
|
|
|
echo "to the user home directory. The location can be set by the environment"
|
|
|
|
echo "variable \$LOGTALKUSER (defaults to ~/logtalk when the variable is not"
|
|
|
|
echo "defined)"
|
2004-04-26 00:57:46 +01:00
|
|
|
echo
|
|
|
|
|
|
|
|
if ! [ $LOGTALKHOME ]
|
|
|
|
then
|
2004-11-29 20:36:31 +00:00
|
|
|
echo "The environment variable LOGTALKHOME must be defined first!"
|
2004-04-26 00:57:46 +01:00
|
|
|
else
|
2004-11-29 20:36:31 +00:00
|
|
|
if ! [ $LOGTALKUSER ]
|
|
|
|
then
|
|
|
|
LOGTALKUSER=$HOME/logtalk
|
|
|
|
echo "After the script completion, you must set the environment variable"
|
|
|
|
echo "LOGTALKUSER pointing to $LOGTALKUSER"
|
|
|
|
fi
|
|
|
|
mkdir -p $LOGTALKUSER/configs
|
|
|
|
mkdir -p $LOGTALKUSER/examples
|
|
|
|
mkdir -p $LOGTALKUSER/libpaths
|
|
|
|
mkdir -p $LOGTALKUSER/library
|
|
|
|
mkdir -p $LOGTALKUSER/xml
|
|
|
|
cp -RL $LOGTALKHOME/configs $LOGTALKUSER/
|
|
|
|
cp -RL $LOGTALKHOME/examples $LOGTALKUSER/
|
|
|
|
cp -RL $LOGTALKHOME/libpaths $LOGTALKUSER/
|
|
|
|
cp -RL $LOGTALKHOME/library $LOGTALKUSER/
|
|
|
|
cp -RL $LOGTALKHOME/xml $LOGTALKUSER/
|
|
|
|
chmod -R u+w $LOGTALKUSER
|
|
|
|
ln -sf $LOGTALKHOME/BIBLIOGRAPHY $LOGTALKUSER/BIBLIOGRAPHY
|
|
|
|
ln -sf $LOGTALKHOME/LICENSE $LOGTALKUSER/LICENSE
|
|
|
|
ln -sf $LOGTALKHOME/QUICK_START $LOGTALKUSER/QUICK_START
|
|
|
|
ln -sf $LOGTALKHOME/README $LOGTALKUSER/README
|
|
|
|
ln -sf $LOGTALKHOME/RELEASE_NOTES $LOGTALKUSER/RELEASE_NOTES
|
|
|
|
ln -sf $LOGTALKHOME/UPGRADING $LOGTALKUSER/UPGRADING
|
|
|
|
ln -sf $LOGTALKHOME/manuals $LOGTALKUSER/manuals
|
|
|
|
echo "Finished copying Logtalk files directories."
|
|
|
|
echo
|
|
|
|
echo "You may need to edit the \$LOGTALKUSER/libpaths/libpaths.pl file to match"
|
|
|
|
echo "your Prolog compiler and operating-system requirements or to add your own"
|
|
|
|
echo "library paths."
|
|
|
|
echo
|
|
|
|
echo "You may want to customize the default Logtalk compiler options by editing"
|
|
|
|
echo "the configuration file for your Prolog compiler found in the directory"
|
|
|
|
echo "\$LOGTALKUSER/configs."
|
2004-04-26 00:57:46 +01:00
|
|
|
echo
|
|
|
|
fi
|