Logtalk 2.25.1 files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1357 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura
2005-08-08 12:13:45 +00:00
parent ab97812ec7
commit 80c28e1507
219 changed files with 1380 additions and 1008 deletions

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.25.0
Release 2.25.1
Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
=================================================================
@@ -102,7 +102,9 @@ make_sicstuslgt.js
you must edit the reference to the registry key in the script)
make_swilgt.sh
makes a shell script named "swilgt" for running Logtalk with SWI-Prolog
makes a shell script named "swilgt" for running Logtalk with SWI-Prolog;
the script assumes that the SWI-Prolog executable is named "swipl" on
MacOS X and named "pl" on Linux and other similar operating systems
make_swilgt.js
makes a Windows shortcut named "Logtalk - SWI-Prolog" for running Logtalk
with SWI-Prolog
@@ -126,14 +128,14 @@ makeall_lgt.sh
simple shell script for running all the make_*lgt.sh shell scripts in
sequence (except the make_qplgt.sh as this script implies modifications to
the Logtalk files which are not necessary for the other Prolog compilers);
note that this script will not print any of the special instructions or
remarks that you may get when running the make_*lgt.sh shell scripts
individually
note that this script will not print any of the special instructions,
remarks, or error messages that you may get when running the make_*lgt.sh
shell scripts individually
makeall_lgt.js
simple shell script for running all the make_*lgt.js shell scripts in
sequence; note that this script will not print any of the special
instructions or remarks that you may get when running the make_*lgt.js
shell scripts individually
instructions, remarks, or error messages that you may get when running
the make_*lgt.js shell scripts individually
These scripts require the environment variable LOGTALKHOME (pointing to the
Logtalk installation directory) to be defined. The *.sh shell scripts

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================

View File

@@ -1,5 +1,5 @@
Package: logtalk
Version: 2.25.0
Version: 2.25.1
Section: languages
Priority: optional
Architecture: all

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -13,24 +13,30 @@ else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
echo
echo "Installing Logtalk on $prefix ..."
echo
rm -rf $prefix/lgt2250
rm -rf $prefix/lgt2251
rm -f $prefix/logtalk
mkdir $prefix/lgt2250
mkdir $prefix/lgt2251
cd ..
cp -R * $prefix/lgt2250
cp -R * $prefix/lgt2251
cd $prefix
chmod -R go-w,a+r lgt2250
chmod a+x lgt2250
chmod a+x lgt2250/scripts/*.sh
chmod a+x lgt2250/xml/*.sh
ln -sf lgt2250 logtalk
chmod -R go-w,a+r lgt2251
chmod a+x lgt2251
chmod a+x lgt2251/scripts/*.sh
chmod a+x lgt2251/xml/*.sh
ln -sf lgt2251 logtalk
mkdir -p bin
cd bin

View File

@@ -1,11 +1,11 @@
Name: logtalk
Summary: Logtalk - Open source object-oriented extension to Prolog
Version: 2.25.0
Version: 2.25.1
Release: 1
License: Artistic License 2.0
Group: Development/Languages
Packager: Paulo Moura <pmoura@logtalk.org>
Source: http://www.logtalk.org/files/lgt2250.tgz
Source: http://www.logtalk.org/files/lgt2251.tgz
BuildArchitectures: noarch
URL: http://www.logtalk.org/
Prefix: /usr/local
@@ -13,19 +13,19 @@ AutoReqProv: no
%description
Logtalk is an open source object-oriented extension to the Prolog programming language. Integrating logic programming with object-oriented and event-driven programming, it is compatible with most Prolog compilers. It supports both prototypes and classes. In addition, it supports component-based programming through category-based composition.
%prep
%setup -n lgt2250
%setup -n lgt2251
%build
%install
rm -rf /usr/local/lgt2250
rm -rf /usr/local/lgt2251
rm -f /usr/local/logtalk
mkdir /usr/local/lgt2250
cp -R * /usr/local/lgt2250
mkdir /usr/local/lgt2251
cp -R * /usr/local/lgt2251
cd /usr/local
chmod -R go-w,a+r lgt2250
chmod a+x lgt2250
chmod a+x lgt2250/scripts/*.sh
chmod a+x lgt2250/xml/*.sh
ln -sf lgt2250 logtalk
chmod -R go-w,a+r lgt2251
chmod a+x lgt2251
chmod a+x lgt2251/scripts/*.sh
chmod a+x lgt2251/xml/*.sh
ln -sf lgt2251 logtalk
cd bin
ln -sf ../logtalk/scripts/cplgtdirs.sh cplgtdirs
ln -sf ../logtalk/xml/lgt2pdf.sh lgt2pdf
@@ -34,24 +34,24 @@ ln -sf ../logtalk/xml/lgt2xml.sh lgt2xml
%clean
%files
%defattr(-,root,users)
%doc /usr/local/lgt2250/BIBLIOGRAPHY
%doc /usr/local/lgt2250/INSTALL
%doc /usr/local/lgt2250/LICENSE
%doc /usr/local/lgt2250/QUICK_START
%doc /usr/local/lgt2250/README
%doc /usr/local/lgt2250/RELEASE_NOTES
%doc /usr/local/lgt2250/UPGRADING
/usr/local/lgt2250/compiler
/usr/local/lgt2250/configs
/usr/local/lgt2250/contributions
/usr/local/lgt2250/examples
/usr/local/lgt2250/libpaths
/usr/local/lgt2250/library
%docdir /usr/local/lgt2250/manuals
/usr/local/lgt2250/manuals
/usr/local/lgt2250/scripts
/usr/local/lgt2250/wenv
/usr/local/lgt2250/xml
%doc /usr/local/lgt2251/BIBLIOGRAPHY
%doc /usr/local/lgt2251/INSTALL
%doc /usr/local/lgt2251/LICENSE
%doc /usr/local/lgt2251/QUICK_START
%doc /usr/local/lgt2251/README
%doc /usr/local/lgt2251/RELEASE_NOTES
%doc /usr/local/lgt2251/UPGRADING
/usr/local/lgt2251/compiler
/usr/local/lgt2251/configs
/usr/local/lgt2251/contributions
/usr/local/lgt2251/examples
/usr/local/lgt2251/libpaths
/usr/local/lgt2251/library
%docdir /usr/local/lgt2251/manuals
/usr/local/lgt2251/manuals
/usr/local/lgt2251/scripts
/usr/local/lgt2251/wenv
/usr/local/lgt2251/xml
/usr/local/logtalk
/usr/local/bin/cplgtdirs
/usr/local/bin/lgt2pdf

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,32 +15,38 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
cd bin
echo ":- ensure_loaded('\$LOGTALKUSER/configs/ciao_aux.config')." > logtalk_ciao.rc
echo ":- ensure_loaded('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_ciao.rc
echo ":- ensure_loaded('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_ciao.rc
echo ":- op(600, xfy, ::)." >> logtalk_ciao.rc
echo ":- op(600, fy, ::)." >> logtalk_ciao.rc
echo ":- op(600, fy, ^^)." >> logtalk_ciao.rc
echo ":- op(200, fy, +)." >> logtalk_ciao.rc
echo ":- op(200, fy, ?)." >> logtalk_ciao.rc
echo ":- op(200, fy, @)." >> logtalk_ciao.rc
echo ":- op(200, fy, -)." >> logtalk_ciao.rc
echo "#/bin/sh" > ciaolgt
echo "ciaosh -l \$LOGTALKHOME/bin/logtalk_ciao.rc" >> ciaolgt
chmod a+x ciaolgt
ln -sf $LOGTALKHOME/bin/ciaolgt $prefix/bin/ciaolgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
cd bin
echo ":- ensure_loaded('\$LOGTALKUSER/configs/ciao_aux.config')." > logtalk_ciao.rc
echo ":- ensure_loaded('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_ciao.rc
echo ":- ensure_loaded('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_ciao.rc
echo ":- op(600, xfy, ::)." >> logtalk_ciao.rc
echo ":- op(600, fy, ::)." >> logtalk_ciao.rc
echo ":- op(600, fy, ^^)." >> logtalk_ciao.rc
echo ":- op(200, fy, +)." >> logtalk_ciao.rc
echo ":- op(200, fy, ?)." >> logtalk_ciao.rc
echo ":- op(200, fy, @)." >> logtalk_ciao.rc
echo ":- op(200, fy, -)." >> logtalk_ciao.rc
echo "#/bin/sh" > ciaolgt
echo "ciaosh -l \$LOGTALKHOME/bin/logtalk_ciao.rc" >> ciaolgt
chmod a+x ciaolgt
ln -sf $LOGTALKHOME/bin/ciaolgt $prefix/bin/ciaolgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,28 +15,35 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
cd bin
echo ":- pragma(system)." > logtalk_eclipse.pl
echo ":- pragma(nodebug)." >> logtalk_eclipse.pl
echo ":- ensure_loaded(library(toplevel))." >> logtalk_eclipse.pl
echo ":- include('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_eclipse.pl
echo ":- compile('\$LOGTALKUSER/configs/eclipseiso.config')." > logtalk_eclipse.rc
echo ":- compile('\$LOGTALKHOME/bin/logtalk_eclipse.pl')." >> logtalk_eclipse.rc
echo ":- compile('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_eclipse.rc
echo "#/bin/sh" > eclipselgt
echo "eclipse -b \$LOGTALKHOME/bin/logtalk_eclipse.rc" >> eclipselgt
chmod a+x eclipselgt
ln -sf $LOGTALKHOME/bin/eclipselgt $prefix/bin/eclipselgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
cd bin
echo ":- pragma(system)." > logtalk_eclipse.pl
echo ":- pragma(nodebug)." >> logtalk_eclipse.pl
echo ":- ensure_loaded(library(toplevel))." >> logtalk_eclipse.pl
echo ":- include('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_eclipse.pl
echo ":- compile('\$LOGTALKUSER/configs/eclipseiso.config')." > logtalk_eclipse.rc
echo ":- compile('\$LOGTALKHOME/bin/logtalk_eclipse.pl')." >> logtalk_eclipse.rc
echo ":- compile('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_eclipse.rc
echo "#/bin/sh" > eclipselgt
echo "eclipse -b \$LOGTALKHOME/bin/logtalk_eclipse.rc" >> eclipselgt
chmod a+x eclipselgt
ln -sf $LOGTALKHOME/bin/eclipselgt $prefix/bin/eclipselgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,23 +15,30 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
cd bin
echo ":- built_in." > logtalk_gp.pl
cat ../compiler/logtalk.pl >> logtalk_gp.pl
echo "#/bin/sh" > gplgt
echo "gprolog --init-goal \"['$LOGTALKUSER/configs/gnu.config', '$LOGTALKHOME/bin/logtalk_gp.pl', '$LOGTALKUSER/libpaths/libpaths.pl']\"" >> gplgt
chmod a+x gplgt
ln -sf $LOGTALKHOME/bin/gplgt $prefix/bin/gplgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
cd bin
echo ":- built_in." > logtalk_gp.pl
cat ../compiler/logtalk.pl >> logtalk_gp.pl
echo "#/bin/sh" > gplgt
echo "gprolog --init-goal \"['$LOGTALKUSER/configs/gnu.config', '$LOGTALKHOME/bin/logtalk_gp.pl', '$LOGTALKUSER/libpaths/libpaths.pl']\"" >> gplgt
chmod a+x gplgt
ln -sf $LOGTALKHOME/bin/gplgt $prefix/bin/gplgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,24 +15,31 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
cd bin
echo ":- ensure_loaded('\$LOGTALKUSER/configs/k.config')." > logtalk_plc.rc
echo ":- ensure_loaded('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_plc.rc
echo ":- ensure_loaded('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_plc.rc
echo "#/bin/sh" > plclgt
echo "\$PLC/plc -h 2048k -l 1024k -g 2048k -e \"(consult('\\\$LOGTALKHOME/bin/logtalk_plc.rc'), '\\\$root').\"" >> plclgt
chmod a+x plclgt
ln -sf $LOGTALKHOME/bin/plclgt $prefix/bin/plclgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
cd bin
echo ":- ensure_loaded('\$LOGTALKUSER/configs/k.config')." > logtalk_plc.rc
echo ":- ensure_loaded('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_plc.rc
echo ":- ensure_loaded('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_plc.rc
echo "#/bin/sh" > plclgt
echo "\$PLC/plc -h 2048k -l 1024k -g 2048k -e \"(consult('\\\$LOGTALKHOME/bin/logtalk_plc.rc'), '\\\$root').\"" >> plclgt
chmod a+x plclgt
ln -sf $LOGTALKHOME/bin/plclgt $prefix/bin/plclgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,32 +15,39 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
find . -name "*.lgt" -exec perl -pi -e "s/version is (\d)\.(\d)/version is '\1\.\2'/" {} \;
cd configs
cp qu.config qu.ql
echo "fcompile('qu.ql', [assemble_only(true)]), load(qu). \
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
find . -name "*.lgt" -exec perl -pi -e "s/version is (\d)\.(\d)/version is '\1\.\2'/" {} \;
cd configs
cp qu.config qu.ql
echo "fcompile('qu.ql', [assemble_only(true)]), load(qu). \
chdir('../compiler/'), fcompile('logtalk.pl', [assemble_only(true), string_table(256)]), load(logtalk). \
chdir('../libpaths/'), fcompile('libpaths.pl', [assemble_only(true)]), load(libpaths)." | qp -s 2048 -d 1024 -h 2000
qc -c qphook.ql
cd ../bin
qc -s 2048 -d 1024 -h 2000 -o qplgt ../configs/qphook.qo ../configs/qu.qo ../compiler/logtalk.qo ../libpaths/libpaths.qo
chmod a+x qplgt
ln -sf $LOGTALKHOME/bin/qplgt $prefix/bin/qplgt
rm ../configs/qu.ql
rm ../configs/qphook.qo
rm ../configs/qu.qo
rm ../compiler/logtalk.qo
rm ../libpaths/libpaths.qo
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
fi
qc -c qphook.ql
cd ../bin
qc -s 2048 -d 1024 -h 2000 -o qplgt ../configs/qphook.qo ../configs/qu.qo ../compiler/logtalk.qo ../libpaths/libpaths.qo
chmod a+x qplgt
ln -sf $LOGTALKHOME/bin/qplgt $prefix/bin/qplgt
rm ../configs/qu.ql
rm ../configs/qphook.qo
rm ../configs/qu.qo
rm ../compiler/logtalk.qo
rm ../libpaths/libpaths.qo
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,25 +15,32 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
cd bin
echo ":- compile('\$LOGTALKUSER/configs/sicstus.config')." > logtalk_sicstus.rc
echo ":- compile('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_sicstus.rc
echo ":- compile('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_sicstus.rc
echo "#/bin/sh" > sicstuslgt
echo "sicstus -l \$LOGTALKHOME/bin/logtalk_sicstus.rc" >> sicstuslgt
chmod a+x sicstuslgt
ln -sf $LOGTALKHOME/bin/sicstuslgt $prefix/bin/sicstuslgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
cd bin
echo ":- compile('\$LOGTALKUSER/configs/sicstus.config')." > logtalk_sicstus.rc
echo ":- compile('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_sicstus.rc
echo ":- compile('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_sicstus.rc
echo "#/bin/sh" > sicstuslgt
echo "sicstus -l \$LOGTALKHOME/bin/logtalk_sicstus.rc" >> sicstuslgt
chmod a+x sicstuslgt
ln -sf $LOGTALKHOME/bin/sicstuslgt $prefix/bin/sicstuslgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,27 +15,37 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
cd bin
echo ":- system_module." > logtalk_swi.pl
cat ../compiler/logtalk.pl >> logtalk_swi.pl
echo ":- consult('\$LOGTALKUSER/configs/swi.config')." > logtalk_swi.rc
echo ":- consult('\$LOGTALKUSER/configs/swihook.pl')." >> logtalk_swi.rc
echo ":- consult('\$LOGTALKHOME/bin/logtalk_swi.pl')." >> logtalk_swi.rc
echo ":- consult('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_swi.rc
echo "#/bin/sh" > swilgt
echo "swipl -f \$LOGTALKHOME/bin/logtalk_swi.rc" >> swilgt
chmod a+x swilgt
ln -sf $LOGTALKHOME/bin/swilgt $prefix/bin/swilgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
cd bin
echo ":- system_module." > logtalk_swi.pl
cat ../compiler/logtalk.pl >> logtalk_swi.pl
echo ":- consult('\$LOGTALKUSER/configs/swi.config')." > logtalk_swi.rc
echo ":- consult('\$LOGTALKUSER/configs/swihook.pl')." >> logtalk_swi.rc
echo ":- consult('\$LOGTALKHOME/bin/logtalk_swi.pl')." >> logtalk_swi.rc
echo ":- consult('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_swi.rc
echo "#/bin/sh" > swilgt
case $( uname -s ) in
Darwin ) echo "swipl -f \$LOGTALKHOME/bin/logtalk_swi.rc" >> swilgt;;
* ) echo "pl -f \$LOGTALKHOME/bin/logtalk_swi.rc" >> swilgt;;
esac
chmod a+x swilgt
ln -sf $LOGTALKHOME/bin/swilgt $prefix/bin/swilgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,35 +15,42 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
cd bin
cp ../compiler/logtalk.pl logtalk.P
sed 's/^..lgt_current_object_.[(]user.*[)]/:- assertz(&)/' logtalk.P > temp1
sed 's/^..lgt_current_object_.[(]debugger.*[)]/:- assertz(&)/' temp1 > temp2
sed 's/^..lgt_dbg_leashing_.[(].*[)]/:- assertz(&)/g' temp2 > logtalk.P
rm temp1
rm temp2
echo ":- reconsult('$LOGTALKUSER/configs/xsb.P')." > logtalkxsb.P
echo ":- reconsult('$LOGTALKHOME/bin/logtalk.P')." >> logtalkxsb.P
echo ":- reconsult('$LOGTALKUSER/libpaths/libpaths.P')." >> logtalkxsb.P
echo "#/bin/sh" > xsblgt
echo "xsb -e \"reconsult('\$LOGTALKHOME/bin/logtalkxsb.P').\"" >> xsblgt
chmod a+x xsblgt
ln -sf $LOGTALKHOME/bin/xsblgt $prefix/bin/xsblgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
echo "Users must change the extension of files \$LOGTALKUSER/configs/xsb.config"
echo "and \$LOGTALKUSER/libpaths/libpaths.pl to '.P' before using the xsblgt"
echo "script. In addition, users must edit the libpaths.P file to replace all"
echo "occurrences of the LOGTALKUSER environment variable by its value."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
cd bin
cp ../compiler/logtalk.pl logtalk.P
sed 's/^..lgt_current_object_.[(]user.*[)]/:- assertz(&)/' logtalk.P > temp1
sed 's/^..lgt_current_object_.[(]debugger.*[)]/:- assertz(&)/' temp1 > temp2
sed 's/^..lgt_dbg_leashing_.[(].*[)]/:- assertz(&)/g' temp2 > logtalk.P
rm temp1
rm temp2
echo ":- reconsult('$LOGTALKUSER/configs/xsb.P')." > logtalkxsb.P
echo ":- reconsult('$LOGTALKHOME/bin/logtalk.P')." >> logtalkxsb.P
echo ":- reconsult('$LOGTALKUSER/libpaths/libpaths.P')." >> logtalkxsb.P
echo "#/bin/sh" > xsblgt
echo "xsb -e \"reconsult('\$LOGTALKHOME/bin/logtalkxsb.P').\"" >> xsblgt
chmod a+x xsblgt
ln -sf $LOGTALKHOME/bin/xsblgt $prefix/bin/xsblgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
echo "Users must change the extension of files \$LOGTALKUSER/configs/xsb.config"
echo "and \$LOGTALKUSER/libpaths/libpaths.pl to '.P' before using the xsblgt"
echo "script. In addition, users must edit the libpaths.P file to replace all"
echo "occurrences of the LOGTALKUSER environment variable by its value."
echo

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -15,25 +15,32 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
cd "$LOGTALKHOME"
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
mkdir -p bin
cd bin
echo ":- reconsult('\$LOGTALKUSER/configs/yap.config')." > logtalk_yap.rc
echo ":- reconsult('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_yap.rc
echo ":- reconsult('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_yap.rc
echo "#/bin/sh" > yaplgt
echo "yap -l \$LOGTALKHOME/bin/logtalk_yap.rc" >> yaplgt
chmod a+x yaplgt
ln -sf $LOGTALKHOME/bin/yaplgt $prefix/bin/yaplgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
cd "$LOGTALKHOME"
mkdir -p bin
cd bin
echo ":- reconsult('\$LOGTALKUSER/configs/yap.config')." > logtalk_yap.rc
echo ":- reconsult('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalk_yap.rc
echo ":- reconsult('\$LOGTALKUSER/libpaths/libpaths.pl')." >> logtalk_yap.rc
echo "#/bin/sh" > yaplgt
echo "yap -l \$LOGTALKHOME/bin/logtalk_yap.rc" >> yaplgt
chmod a+x yaplgt
ln -sf $LOGTALKHOME/bin/yaplgt $prefix/bin/yaplgt
echo "Done. A link to the script was been created in $prefix/bin."
echo "Users should define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.0
// Release 2.25.1
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -51,7 +51,7 @@ WScript.Echo('LOGTALKUSER are defined for all users wishing to use the shortcuts
WScript.Echo('');
WScript.Echo('If you get an unexpected failure to create a shortcut for one of the');
WScript.Echo('above Prolog compilers, make sure that the Prolog compiler is properly');
WScript.Echo('installed, consult the NOTES file on the scripts directory and try to');
WScript.Echo('installed, consult the NOTES file on the scripts directory, and try to');
WScript.Echo('run the corresponding script individually.');
WScript.Echo('');

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.0
## Release 2.25.1
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -16,68 +16,83 @@ then
echo "The environment variable LOGTALKHOME must be defined first!"
echo
exit 1
else
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
./make_ciaolgt.sh $prefix > /dev/null
if [ $? ]; then
echo "ciaolgt script created"
else
echo "ciaolgt script creation failed"
fi
./make_eclipselgt.sh $prefix > /dev/null
if [ $? ]; then
echo "eclipselgt script created"
else
echo "eclipselgt script creation failed"
fi
./make_gplgt.sh $prefix > /dev/null
if [ $? ]; then
echo "gplgt script created"
else
echo "gplgt script creation failed"
fi
./make_plclgt.sh $prefix > /dev/null
if [ $? ]; then
echo "plclgt script created"
else
echo "plclgt script creation failed"
fi
./make_sicstuslgt.sh $prefix > /dev/null
if [ $? ]; then
echo "sicstuslgt script created"
else
echo "sicstuslgt script creation failed"
fi
./make_swilgt.sh $prefix > /dev/null
if [ $? ]; then
echo "swilgt script created"
else
echo "swilgt script creation failed"
fi
./make_xsblgt.sh $prefix > /dev/null
if [ $? ]; then
echo "xsblgt script created"
else
echo "xsblgt script creation failed"
fi
./make_yaplgt.sh $prefix > /dev/null
if [ $? ]; then
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 "
echo "execution path. Users should define the environment variables "
echo "LOGTALKHOME and LOGTALKUSER in order to use the scripts."
echo
echo "If you get an unexpected failure to create a shortcut for one of the"
echo "above Prolog compilers, please consult the NOTES file on the scripts"
echo "directory or try to run the corresponding script individually."
echo
fi
if [ -z "$1" ]; then
prefix=/usr/local
else
prefix="$1"
fi
if ! [ -d "$1" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
fi
./make_ciaolgt.sh $prefix > /dev/null
if [ $? ]; then
echo "ciaolgt script created"
else
echo "ciaolgt script creation failed"
fi
./make_eclipselgt.sh $prefix > /dev/null
if [ $? ]; then
echo "eclipselgt script created"
else
echo "eclipselgt script creation failed"
fi
./make_gplgt.sh $prefix > /dev/null
if [ $? ]; then
echo "gplgt script created"
else
echo "gplgt script creation failed"
fi
./make_plclgt.sh $prefix > /dev/null
if [ $? ]; then
echo "plclgt script created"
else
echo "plclgt script creation failed"
fi
./make_sicstuslgt.sh $prefix > /dev/null
if [ $? ]; then
echo "sicstuslgt script created"
else
echo "sicstuslgt script creation failed"
fi
./make_swilgt.sh $prefix > /dev/null
if [ $? ]; then
echo "swilgt script created"
else
echo "swilgt script creation failed"
fi
./make_xsblgt.sh $prefix > /dev/null
if [ $? ]; then
echo "xsblgt script created"
else
echo "xsblgt script creation failed"
fi
./make_yaplgt.sh $prefix > /dev/null
if [ $? ]; then
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 "
echo "execution path. Users should define the environment variables "
echo "LOGTALKHOME and LOGTALKUSER in order to use the scripts."
echo
echo "If you get an unexpected failure to create a shortcut for one of the"
echo "above Prolog compilers, please consult the NOTES file on the scripts"
echo "directory or try to run the corresponding script individually."
echo