Logtalk 2.27.0 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1539 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.26.2
|
||||
Release 2.27.0
|
||||
|
||||
Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
@@ -91,7 +91,9 @@ make_plclgt.js
|
||||
|
||||
make_qplgt.sh
|
||||
makes a shell script named "qplgt" for running Logtalk with Qu-Prolog
|
||||
(based on script code contributed by Peter Robinson)
|
||||
(based on script code contributed by Peter Robinson); this script does
|
||||
not read at runtime the config and the libpaths files: you will need to
|
||||
run this script again if you modify these files
|
||||
|
||||
make_sicstuslgt.sh
|
||||
makes a shell script named "sicstuslgt" for running Logtalk with SICStus
|
||||
@@ -157,7 +159,11 @@ be defined in order to run the *lgt scripts that are created by the shell
|
||||
scripts above or the Windows shortcuts (see the INSTALL file for details on
|
||||
setting the variables).
|
||||
|
||||
Note: when Logtalk is manually installed from sources, the shell scripts
|
||||
might not have the executable permission bit set. In that case it will
|
||||
be necessary to first run the command "chmod a+x *.sh" on the "scripts" and
|
||||
"xml" directories.
|
||||
When Logtalk is manually installed from sources, the shell scripts might not
|
||||
have the executable permission bit set. In that case it will be necessary to
|
||||
first run the command "chmod a+x *.sh" on the "scripts" and "xml" directories.
|
||||
|
||||
Depending on the size and complexity of your Logtalk applications, you may
|
||||
need to change the integration scripts in order to allocate more memory to
|
||||
Prolog compilers. Please consult the documentation on the Prolog compilers
|
||||
you intend to use for details.
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
find . -name .svn -print0 | xargs -0 rm -rf
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
@@ -23,20 +23,20 @@ echo
|
||||
echo "Installing Logtalk on $prefix ..."
|
||||
echo
|
||||
|
||||
rm -rf $prefix/lgt2262
|
||||
rm -rf $prefix/lgt2270
|
||||
rm -f $prefix/logtalk
|
||||
|
||||
mkdir $prefix/lgt2262
|
||||
mkdir $prefix/lgt2270
|
||||
|
||||
cd ..
|
||||
cp -R * $prefix/lgt2262
|
||||
cp -R * $prefix/lgt2270
|
||||
|
||||
cd $prefix
|
||||
chmod -R go-w,a+r lgt2262
|
||||
chmod a+x lgt2262
|
||||
chmod a+x lgt2262/scripts/*.sh
|
||||
chmod a+x lgt2262/xml/*.sh
|
||||
ln -sf lgt2262 logtalk
|
||||
chmod -R go-w,a+r lgt2270
|
||||
chmod a+x lgt2270
|
||||
chmod a+x lgt2270/scripts/*.sh
|
||||
chmod a+x lgt2270/xml/*.sh
|
||||
ln -sf lgt2270 logtalk
|
||||
|
||||
mkdir -p bin
|
||||
cd bin
|
||||
@@ -57,6 +57,6 @@ 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 "been created on $prefix/bin; you may need to add this directory to"
|
||||
echo "your execution path."
|
||||
echo
|
||||
|
@@ -1,11 +1,11 @@
|
||||
Name: logtalk
|
||||
Summary: Logtalk - Open source object-oriented extension to Prolog
|
||||
Version: 2.26.2
|
||||
Version: 2.27.0
|
||||
Release: 1
|
||||
License: Artistic License 2.0
|
||||
Group: Development/Languages
|
||||
Packager: Paulo Moura <pmoura@logtalk.org>
|
||||
Source: http://www.logtalk.org/files/lgt2262.tgz
|
||||
Source: http://www.logtalk.org/files/lgt2270.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 lgt2262
|
||||
%setup -n lgt2270
|
||||
%build
|
||||
%install
|
||||
rm -rf /usr/local/lgt2262
|
||||
rm -rf /usr/local/lgt2270
|
||||
rm -f /usr/local/logtalk
|
||||
mkdir /usr/local/lgt2262
|
||||
cp -R * /usr/local/lgt2262
|
||||
mkdir /usr/local/lgt2270
|
||||
cp -R * /usr/local/lgt2270
|
||||
cd /usr/local
|
||||
chmod -R go-w,a+r lgt2262
|
||||
chmod a+x lgt2262
|
||||
chmod a+x lgt2262/scripts/*.sh
|
||||
chmod a+x lgt2262/xml/*.sh
|
||||
ln -sf lgt2262 logtalk
|
||||
chmod -R go-w,a+r lgt2270
|
||||
chmod a+x lgt2270
|
||||
chmod a+x lgt2270/scripts/*.sh
|
||||
chmod a+x lgt2270/xml/*.sh
|
||||
ln -sf lgt2270 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/lgt2262/BIBLIOGRAPHY
|
||||
%doc /usr/local/lgt2262/INSTALL
|
||||
%doc /usr/local/lgt2262/LICENSE
|
||||
%doc /usr/local/lgt2262/QUICK_START
|
||||
%doc /usr/local/lgt2262/README
|
||||
%doc /usr/local/lgt2262/RELEASE_NOTES
|
||||
%doc /usr/local/lgt2262/UPGRADING
|
||||
/usr/local/lgt2262/compiler
|
||||
/usr/local/lgt2262/configs
|
||||
/usr/local/lgt2262/contributions
|
||||
/usr/local/lgt2262/examples
|
||||
/usr/local/lgt2262/libpaths
|
||||
/usr/local/lgt2262/library
|
||||
%docdir /usr/local/lgt2262/manuals
|
||||
/usr/local/lgt2262/manuals
|
||||
/usr/local/lgt2262/scripts
|
||||
/usr/local/lgt2262/wenv
|
||||
/usr/local/lgt2262/xml
|
||||
%doc /usr/local/lgt2270/BIBLIOGRAPHY
|
||||
%doc /usr/local/lgt2270/INSTALL
|
||||
%doc /usr/local/lgt2270/LICENSE
|
||||
%doc /usr/local/lgt2270/QUICK_START
|
||||
%doc /usr/local/lgt2270/README
|
||||
%doc /usr/local/lgt2270/RELEASE_NOTES
|
||||
%doc /usr/local/lgt2270/UPGRADING
|
||||
/usr/local/lgt2270/compiler
|
||||
/usr/local/lgt2270/configs
|
||||
/usr/local/lgt2270/contributions
|
||||
/usr/local/lgt2270/examples
|
||||
/usr/local/lgt2270/libpaths
|
||||
/usr/local/lgt2270/library
|
||||
%docdir /usr/local/lgt2270/manuals
|
||||
/usr/local/lgt2270/manuals
|
||||
/usr/local/lgt2270/scripts
|
||||
/usr/local/lgt2270/wenv
|
||||
/usr/local/lgt2270/xml
|
||||
/usr/local/logtalk
|
||||
/usr/local/bin/cplgtdirs
|
||||
/usr/local/bin/lgt2pdf
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
108
Logtalk/scripts/make_xsbcvslgt.js
Normal file
108
Logtalk/scripts/make_xsbcvslgt.js
Normal file
@@ -0,0 +1,108 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
var prolog_path = "C:\\Program Files\\XSB\\bin\\xsb.exe";
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
usage_help();
|
||||
WScript.Quit(0);
|
||||
}
|
||||
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Creating a shortcut named "Logtalk - XSB CVS" for running Logtalk');
|
||||
WScript.Echo('with XSB...');
|
||||
WScript.Echo('');
|
||||
|
||||
var FSObject = new ActiveXObject("Scripting.FileSystemObject");
|
||||
|
||||
if (!FSObject.FileExists(prolog_path)) {
|
||||
WScript.Echo("Error! Cannot find xsb.exe at the expected place!");
|
||||
WScript.Echo("Please edit the script and update the location of the xsb.exe executable.");
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
|
||||
var WshSystemEnv = WshShell.Environment("SYSTEM");
|
||||
var WshUserEnv = WshShell.Environment("USER");
|
||||
var logtalk_home;
|
||||
|
||||
if (WshSystemEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshSystemEnv.Item("LOGTALKHOME");
|
||||
else if (WshUserEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshUserEnv.Item("LOGTALKHOME")
|
||||
else {
|
||||
WScript.Echo("Error! The environment variable LOGTALKHOME must be defined first!");
|
||||
usage_help();
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
if (!FSObject.FolderExists(logtalk_home)) {
|
||||
WScript.Echo("The environment variable LOGTALKHOME points to a non-existing directory!");
|
||||
WScript.Echo("Its current value is: %LOGTALKHOME%");
|
||||
WScript.Echo("The variable must be set to your Logtalk installation directory!");
|
||||
WScript.Echo("");
|
||||
usage_help();
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
logtalk_home = logtalk_home.replace(/\\/g, "\\\\");
|
||||
|
||||
if (!FSObject.FolderExists(logtalk_home + "\\bin"))
|
||||
FSObject.CreateFolder(logtalk_home + "\\bin");
|
||||
|
||||
FSObject.CopyFile(logtalk_home + "\\compiler\\logtalk.pl", logtalk_home + "\\bin\\logtalkcvs.P");
|
||||
|
||||
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalk_xsbcvs.P", true);
|
||||
|
||||
f.WriteLine(":- reconsult('$LOGTALKUSER\\\\configs\\\\xsbcvs.P').");
|
||||
f.WriteLine(":- reconsult('$LOGTALKHOME\\\\bin\\\\logtalk.P').");
|
||||
f.WriteLine(":- reconsult('$LOGTALKUSER\\\\libpaths\\\\libpaths.P').");
|
||||
f.Close();
|
||||
|
||||
var ProgramsPath = WshShell.SpecialFolders("AllUsersPrograms");
|
||||
|
||||
if (!FSObject.FolderExists(ProgramsPath + "\\Logtalk"))
|
||||
FSObject.CreateFolder(ProgramsPath + "\\Logtalk");
|
||||
|
||||
var link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk\\Logtalk - XSB CVS.lnk");
|
||||
link.Arguments = "-l %LOGTALKHOME%\\bin\\logtalk_xsbcvs.P";
|
||||
link.Description = "Runs Logtalk with XSB CVS";
|
||||
link.IconLocation = "app.exe,1";
|
||||
link.TargetPath = prolog_path;
|
||||
link.WindowStyle = 1;
|
||||
link.WorkingDirectory = logtalk_home;
|
||||
link.Save();
|
||||
|
||||
WScript.Echo('Done. The "Logtalk - XSB CVS" shortcut was been added to the Start Menu');
|
||||
WScript.Echo('Programs. Make sure that the environment variables LOGTALKHOME and');
|
||||
WScript.Echo('LOGTALKUSER are defined for all users wishing to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('The first call to the shortcut must be made by a user with');
|
||||
WScript.Echo('administrative rights.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('"Logtalk - XSB CVS" shortcut. Users must edit the contents of');
|
||||
WScript.Echo('the "libpaths.P" file on the "libpaths" directory in order to');
|
||||
WScript.Echo('replace all occurrences of the LOGTALKUSER environment variable');
|
||||
WScript.Echo('by its value.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
||||
function usage_help() {
|
||||
WScript.Echo('');
|
||||
WScript.Echo('This script creates a shortcut named "Logtalk - XSB CVS" for running Logtalk');
|
||||
WScript.Echo('with XSB. The script must be run by a user with administrative rights.');
|
||||
WScript.Echo('The LOGTALKHOME environment variable must be defined before running this');
|
||||
WScript.Echo('script.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Usage:');
|
||||
WScript.Echo(' ' + WScript.ScriptName + ' help');
|
||||
WScript.Echo(' ' + WScript.ScriptName);
|
||||
WScript.Echo('');
|
||||
}
|
58
Logtalk/scripts/make_xsbcvslgt.sh
Executable file
58
Logtalk/scripts/make_xsbcvslgt.sh
Executable file
@@ -0,0 +1,58 @@
|
||||
#!/bin/sh
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
echo "Creating a script named xsbcvslgt for running Logtalk with XSB..."
|
||||
echo
|
||||
|
||||
if ! [ "$LOGTALKHOME" ]
|
||||
then
|
||||
echo "The environment variable LOGTALKHOME must be defined first!"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
prefix=/usr/local
|
||||
else
|
||||
prefix="$1"
|
||||
fi
|
||||
|
||||
if ! [ -d "$prefix" ]; then
|
||||
echo "Directory prefix does not exist!"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$LOGTALKHOME"
|
||||
mkdir -p bin
|
||||
cd bin
|
||||
cp ../compiler/logtalk.pl logtalkcvs.P
|
||||
echo ":- reconsult('$LOGTALKUSER/configs/xsbcvs.P')." > logtalkxsbcvs.P
|
||||
echo ":- reconsult('$LOGTALKHOME/bin/logtalkcvs.P')." >> logtalkxsbcvs.P
|
||||
echo ":- reconsult('$LOGTALKUSER/libpaths/libpaths.P')." >> logtalkxsbcvs.P
|
||||
echo "#/bin/sh" > xsbcvslgt
|
||||
echo "xsb -e \"reconsult('\$LOGTALKHOME/bin/logtalkxsbcvs.P').\"" >> xsbcvslgt
|
||||
chmod a+x xsbcvslgt
|
||||
ln -sf $LOGTALKHOME/bin/xsbcvslgt $prefix/bin/xsbcvslgt
|
||||
echo "Done. A link to the script was been created in $prefix/bin."
|
||||
echo "Users must define the environment variables LOGTALKHOME and"
|
||||
echo "LOGTALKUSER in order to use the script. Users must run the"
|
||||
echo "the cplgtdirs script before using the xsbcvslgt script."
|
||||
echo
|
||||
echo "The first call to the script must be made as root or using sudo."
|
||||
echo
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
var prolog_path = "C:\\Yap\\bin\\yap.exe";
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
@@ -46,7 +46,7 @@ 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
|
||||
echo "yap -s 49152 -h 16384 -t 1024 -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."
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.26.2
|
||||
// Release 2.27.0
|
||||
//
|
||||
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
WScript.Echo('');
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.26.2
|
||||
## Release 2.27.0
|
||||
##
|
||||
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo
|
||||
|
Reference in New Issue
Block a user