2005-12-24 18:00:21 +00:00
|
|
|
#!/bin/sh
|
2005-05-24 00:33:41 +01:00
|
|
|
|
|
|
|
## =================================================================
|
|
|
|
## Logtalk - Object oriented extension to Prolog
|
2006-11-07 17:11:47 +00:00
|
|
|
## Release 2.28.2
|
2005-05-24 00:33:41 +01:00
|
|
|
##
|
2006-02-10 17:44:05 +00:00
|
|
|
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
2005-05-24 00:33:41 +01:00
|
|
|
## =================================================================
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Creating scripts for running Logtalk with selected Prolog compilers..."
|
|
|
|
echo
|
|
|
|
|
|
|
|
if ! [ "$LOGTALKHOME" ]
|
|
|
|
then
|
|
|
|
echo "The environment variable LOGTALKHOME must be defined first!"
|
|
|
|
echo
|
|
|
|
exit 1
|
2005-08-08 13:13:45 +01:00
|
|
|
fi
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
if ! [ -d "$LOGTALKHOME" ]; then
|
|
|
|
echo "The environment variable LOGTALKHOME points to a non-existing directory!"
|
|
|
|
echo "Its current value is: $LOGTALKHOME"
|
|
|
|
echo "The variable must be set to your Logtalk installation directory!"
|
|
|
|
echo
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
if [ -z "$1" ]; then
|
|
|
|
prefix=/usr/local
|
2005-05-24 00:33:41 +01:00
|
|
|
else
|
2005-08-08 13:13:45 +01:00
|
|
|
prefix="$1"
|
|
|
|
fi
|
|
|
|
|
2005-08-08 18:34:33 +01:00
|
|
|
if ! [ -d "$prefix" ]; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "Directory prefix does not exist!"
|
2005-05-24 00:33:41 +01:00
|
|
|
echo
|
2005-08-08 13:13:45 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2006-11-07 17:11:47 +00:00
|
|
|
./make_bplgt.sh $prefix > /dev/null 2> /dev/null
|
|
|
|
if [ $? = 0 ] ; then
|
|
|
|
echo "bplgt script created"
|
|
|
|
else
|
|
|
|
echo "bplgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
./make_ciaolgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "ciaolgt script created"
|
|
|
|
else
|
|
|
|
echo "ciaolgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
./make_eclipselgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "eclipselgt script created"
|
|
|
|
else
|
|
|
|
echo "eclipselgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
./make_gplgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "gplgt script created"
|
|
|
|
else
|
|
|
|
echo "gplgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
./make_plclgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "plclgt script created"
|
|
|
|
else
|
|
|
|
echo "plclgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
./make_qplgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-12-24 18:00:21 +00:00
|
|
|
echo "qplgt script created"
|
|
|
|
else
|
|
|
|
echo "qplgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
|
|
|
./make_sicstuslgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "sicstuslgt script created"
|
|
|
|
else
|
|
|
|
echo "sicstuslgt script creation failed"
|
2005-05-24 00:33:41 +01:00
|
|
|
fi
|
2005-08-08 13:13:45 +01:00
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
./make_swilgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "swilgt script created"
|
|
|
|
else
|
|
|
|
echo "swilgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
./make_xsblgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "xsblgt script created"
|
|
|
|
else
|
|
|
|
echo "xsblgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
2005-12-24 18:00:21 +00:00
|
|
|
./make_yaplgt.sh $prefix > /dev/null 2> /dev/null
|
2006-11-07 17:11:47 +00:00
|
|
|
if [ $? = 0 ] ; then
|
2005-08-08 13:13:45 +01:00
|
|
|
echo "yaplgt script created"
|
|
|
|
else
|
|
|
|
echo "yaplgt script creation failed"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Done. Links to the created scripts can be found on $prefix/bin."
|
|
|
|
echo "Make sure that the Prolog compilers are also available on your "
|
2006-11-07 17:11:47 +00:00
|
|
|
echo "execution path."
|
|
|
|
echo
|
|
|
|
echo "If you got an unexpected failure when creating or using one of the"
|
|
|
|
echo "Prolog integration scripts, make sure that the Prolog compiler is"
|
|
|
|
echo "properly installed, consult the NOTES file on the scripts directory,"
|
|
|
|
echo "and try to run the corresponding script individually."
|
2005-08-08 13:13:45 +01:00
|
|
|
echo
|
2006-11-07 17:11:47 +00:00
|
|
|
echo "Users should ensure that the environment variables LOGTALKHOME"
|
|
|
|
echo "and LOGTALKUSER are defined and then run the \"cplgtdirs\" script"
|
|
|
|
echo "once prior to using the Prolog integration scripts."
|
2005-08-08 13:13:45 +01:00
|
|
|
echo
|