Logtalk 2.26.2 files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1486 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura
2005-12-24 18:00:21 +00:00
parent f5002fa37f
commit 9f1b358c04
382 changed files with 8056 additions and 8866 deletions

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.25.1
Release 2.26.2
Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,8 +8,8 @@ Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
This directory contains several scripts used for Logtalk packaging,
installation, and integration with Prolog compilers. Those with extension
.sh are shell scripts for MacOS X, Linux, and similar systems. Those with
extension .js are JScript command-line scripts for Windows; they require
".sh" are shell scripts for MacOS X, Linux, and similar systems. Those with
extension ".js" are JScript command-line scripts for Windows; they require
WSH 5.6 or later version to be installed and should be run using cscript.exe
from a DOS shell command line.
@@ -27,9 +27,9 @@ lgt_install.js
and by adding the directories %LOGTALKHOME%\scripts and %LOGTALKHOME%\xml
to the system path environment variable (must be run from this directory
by a user with administration privileges after decompressing the Logtalk
distribution into its final destination; you will need to restart your
computer in order to use the items created in the "Logtalk" program group
due to the definition of new system environment variables)
distribution into its final destination; you must restart your computer
after running this script in order to use the items on the "Logtalk"
program group due to the definition of new system environment variables)
logtalk.spec
specification file for building Linux RPMs
@@ -58,7 +58,7 @@ compilers; they must be run by a user with administration privileges:
make_ciaolgt.sh
makes a shell script named "ciaolgt" for running Logtalk with CIAO Prolog
(the first run of the ciaolgt script must be made as root or using sudo)
(the first run of the "ciaolgt" script must be made as root or using sudo)
make_ciaolgt.js
makes a Windows shortcut named "Logtalk - CIAO" for running Logtalk with
CIAO 1.10 (the first call to the shortcut must be made by a user with
@@ -114,15 +114,23 @@ make_yaplgt.sh
make_yaplgt.js
makes a Windows shortcut named "Logtalk - YAP" for running Logtalk with
YAP (assumes that the Yap folder is installed in C:\Program Files; edit
the path to the yap.exe executable in the script if necessary)
the path to the "yap.exe" executable in the script if necessary)
make_xsblgt.sh
makes a shell script named "xsblgt" for running Logtalk with XSB (the
first run of the xsblgt script must be made as root or using sudo; each
user will need to rename the file configs/xsbXX.config to configs/xsb.P
first run of the "xsblgt" script must be made as root or using sudo; each
user will need to rename the file configs/xsb.config to configs/xsb.P
and make and edit a copy of the libpaths/libpaths.pl in order to replace
all occurrences of the LOGTALKUSER environment variable with its value;
the new file should also use the .P extension)
make_xsbcvslgt.sh
similar to the script above but for running Logtalk with the XSB CVS
version (each user will need to rename the file configs/xsbcvs.config
to configs/xsbcvs.P)
make_xsbcvslgt.js
similar to the script above but for running Logtalk with the XSB CVS
version (assumes that the XSB folder is installed in C:\Program Files;
edit the path to the "xsb.exe" executable in the script if necessary)
makeall_lgt.sh
simple shell script for running all the make_*lgt.sh shell scripts in

View File

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

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -17,7 +17,18 @@ if (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!");
WScript.Echo("The environment variable LOGTALKHOME must be defined first!");
usage_help();
WScript.Quit(1);
}
var FSObject = new ActiveXObject("Scripting.FileSystemObject");
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);
}
@@ -34,11 +45,9 @@ else {
WScript.Echo("");
}
var fso = new ActiveXObject("Scripting.FileSystemObject");
if (fso.FolderExists(logtalk_user)) {
WScript.Echo("Error! Logtalk directory already exists!");
WScript.Echo("Please rename it and run this script again.");
if (FSObject.FolderExists(logtalk_user)) {
WScript.Echo("Error! Logtalk user directory already exists!");
WScript.Echo("Please rename it or delete it and run this script again.");
WScript.Echo("");
usage_help();
}
@@ -48,17 +57,54 @@ WScript.Echo("");
WScript.Echo(" " + logtalk_user);
WScript.Echo("");
fso.CreateFolder(logtalk_user);
FSObject.CreateFolder(logtalk_user);
WScript.Echo("Copying Logtalk files and directories...");
fso.CopyFolder(logtalk_home + "\\configs", logtalk_user + "\\configs");
fso.CopyFolder(logtalk_home + "\\contributions", logtalk_user + "\\contributions");
fso.CopyFolder(logtalk_home + "\\examples", logtalk_user + "\\examples");
fso.CopyFolder(logtalk_home + "\\libpaths", logtalk_user + "\\libpaths");
fso.CopyFolder(logtalk_home + "\\library", logtalk_user + "\\library");
fso.CopyFolder(logtalk_home + "\\xml", logtalk_user + "\\xml");
FSObject.CopyFolder(logtalk_home + "\\configs", logtalk_user + "\\configs");
FSObject.CopyFile(logtalk_user + "\\configs\\xsb.config", logtalk_user + "\\configs\\xsb.P");
FSObject.CopyFile(logtalk_user + "\\configs\\xsbcvs.config", logtalk_user + "\\configs\\xsbcvs.P");
FSObject.CopyFolder(logtalk_home + "\\contributions", logtalk_user + "\\contributions");
FSObject.CopyFolder(logtalk_home + "\\examples", logtalk_user + "\\examples");
FSObject.CopyFolder(logtalk_home + "\\libpaths", logtalk_user + "\\libpaths");
FSObject.CopyFile(logtalk_user + "\\libpaths\\libpaths.pl", logtalk_user + "\\libpaths\\libpaths.P");
FSObject.CopyFolder(logtalk_home + "\\library", logtalk_user + "\\library");
FSObject.CopyFolder(logtalk_home + "\\xml", logtalk_user + "\\xml");
WScript.Echo("Finished copying Logtalk files directories.");
FSObject.DeleteFile(logtalk_user + "\\xml\\lgt2*.*");
FSObject.DeleteFile(logtalk_user + "\\xml\\logtalk.dtd");
FSObject.DeleteFile(logtalk_user + "\\xml\\logtalk.xsd");
var link = WshShell.CreateShortcut(logtalk_user + "\\manuals.lnk");
link.Description = "Shortcut to Logtalk documentation";
link.TargetPath = logtalk_home + "\\manuals";
link.Save();
link = WshShell.CreateShortcut(logtalk_user + "\\xml\\lgt2html.js.lnk");
link.Description = "Shortcut to lgt2html script";
link.TargetPath = logtalk_home + "\\xml\\lgt2html.js";
link.Save();
link = WshShell.CreateShortcut(logtalk_user + "\\xml\\lgt2pdf.js.lnk");
link.Description = "Shortcut to lgt2pdf script";
link.TargetPath = logtalk_home + "\\xml\\lgt2pdf.js";
link.Save();
link = WshShell.CreateShortcut(logtalk_user + "\\xml\\lgt2xml.js.lnk");
link.Description = "Shortcut to lgt2xml script";
link.TargetPath = logtalk_home + "\\xml\\lgt2xml.js";
link.Save();
link = WshShell.CreateShortcut(logtalk_user + "\\xml\\logtalk.dtd.lnk");
link.Description = "Shortcut to Logtalk DTD";
link.TargetPath = logtalk_home + "\\xml\\logtalk.dtd";
link.Save();
link = WshShell.CreateShortcut(logtalk_user + "\\xml\\logtalk.xsd.lnk");
link.Description = "Shortcut to Logtalk XML Schema";
link.TargetPath = logtalk_home + "\\xml\\logtalk.xsd";
link.Save();
WScript.Echo("Finished copying Logtalk files and directories.");
WScript.Echo("");
WScript.Echo("You may need to edit the contents of the file:");
WScript.Echo("");

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -21,6 +21,14 @@ then
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 ! [ "$LOGTALKUSER" ]
then
LOGTALKUSER=$HOME/logtalk
@@ -31,8 +39,8 @@ fi
if [ -d "$LOGTALKUSER" ]
then
echo "Error! Logtalk directory already exists!"
echo "Please rename it and run this script again."
echo "Error! Logtalk user directory already exists!"
echo "Please rename it or delete it and run this script again."
echo
exit 1
fi
@@ -45,12 +53,18 @@ mkdir -p "$LOGTALKUSER"/libpaths
mkdir -p "$LOGTALKUSER"/library
mkdir -p "$LOGTALKUSER"/xml
cp -RL "$LOGTALKHOME"/configs "$LOGTALKUSER"/
ln -sf xsb.config "$LOGTALKUSER"/configs/xsb.P
ln -sf xsbcvs.config "$LOGTALKUSER"/configs/xsbcvs.P
cp -RL "$LOGTALKHOME"/contributions "$LOGTALKUSER"/
cp -RL "$LOGTALKHOME"/examples "$LOGTALKUSER"/
cp -RL "$LOGTALKHOME"/libpaths "$LOGTALKUSER"/
sed 's_\$LOGTALKUSER_'$LOGTALKUSER'_' "$LOGTALKUSER"/libpaths/libpaths.pl > "$LOGTALKUSER"/libpaths/libpaths.P
cp -RL "$LOGTALKHOME"/library "$LOGTALKUSER"/
cp -RL "$LOGTALKHOME"/xml "$LOGTALKUSER"/
chmod -R u+w "$LOGTALKUSER"
rm -f "$LOGTALKUSER"/xml/lgt2*
rm -f "$LOGTALKUSER"/xml/logtalk.dtd
rm -f "$LOGTALKUSER"/xml/logtalk.xsd
ln -sf "$LOGTALKHOME"/BIBLIOGRAPHY "$LOGTALKUSER"/BIBLIOGRAPHY
ln -sf "$LOGTALKHOME"/INSTALL "$LOGTALKUSER"/INSTALL
ln -sf "$LOGTALKHOME"/LICENSE "$LOGTALKUSER"/LICENSE
@@ -59,7 +73,12 @@ 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."
ln -sf "$LOGTALKHOME"/xml/lgt2html.sh "$LOGTALKUSER"/xml/lgt2html
ln -sf "$LOGTALKHOME"/xml/lgt2pdf.sh "$LOGTALKUSER"/xml/lgt2pdf
ln -sf "$LOGTALKHOME"/xml/lgt2xml.sh "$LOGTALKUSER"/xml/lgt2xml
ln -sf "$LOGTALKHOME"/xml/logtalk.dtd "$LOGTALKUSER"/xml/logtalk.dtd
ln -sf "$LOGTALKHOME"/xml/logtalk.xsd "$LOGTALKUSER"/xml/logtalk.xsd
echo "Finished copying Logtalk files and 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"

View File

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

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -111,7 +111,7 @@ link.Description = "Open Logtalk Upgrading instructions";
link.TargetPath = WshShell.CurrentDirectory + "\\UPGRADING.txt";
link.Save();
WScript.Echo('Logtalk basic installation completed. You will need to restart in order');
WScript.Echo('Logtalk basic installation completed. You will need to RESTART in order');
WScript.Echo('to activate the new system environment variables and use the items in');
WScript.Echo('the new Logtalk program group. See the Install and configuration file');
WScript.Echo('for details on customizing your working environment.');
@@ -120,7 +120,7 @@ WScript.Echo('After restarting your computer, you may want to run some of the Pr
WScript.Echo('integration scripts, which you will find on the same directory as this');
WScript.Echo('installer script.');
WScript.Echo('');
WScript.Echo('Users should run the batch script cplgtdirs in order to copy the');
WScript.Echo('Users must run the batch script cplgtdirs in order to copy the');
WScript.Echo('Logtalk user-modifiable files to their home directories. The path');
WScript.Echo('to the cplgtdirs, lgt2pdf, lgt2html, and lgt2xml batch scripts has');
WScript.Echo('been added to the system path environment variable.');

View File

@@ -2,7 +2,7 @@
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -23,20 +23,20 @@ echo
echo "Installing Logtalk on $prefix ..."
echo
rm -rf $prefix/lgt2251
rm -rf $prefix/lgt2262
rm -f $prefix/logtalk
mkdir $prefix/lgt2251
mkdir $prefix/lgt2262
cd ..
cp -R * $prefix/lgt2251
cp -R * $prefix/lgt2262
cd $prefix
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
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
mkdir -p bin
cd bin
@@ -51,7 +51,7 @@ echo
echo "You may want to run some of the Prolog integration scripts, which you"
echo "will find on the same directory as this installer script."
echo
echo "Users should define the environment variable LOGTALKHOME pointing"
echo "Users must 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."

View File

@@ -1,11 +1,11 @@
Name: logtalk
Summary: Logtalk - Open source object-oriented extension to Prolog
Version: 2.25.1
Version: 2.26.2
Release: 1
License: Artistic License 2.0
Group: Development/Languages
Packager: Paulo Moura <pmoura@logtalk.org>
Source: http://www.logtalk.org/files/lgt2251.tgz
Source: http://www.logtalk.org/files/lgt2262.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 lgt2251
%setup -n lgt2262
%build
%install
rm -rf /usr/local/lgt2251
rm -rf /usr/local/lgt2262
rm -f /usr/local/logtalk
mkdir /usr/local/lgt2251
cp -R * /usr/local/lgt2251
mkdir /usr/local/lgt2262
cp -R * /usr/local/lgt2262
cd /usr/local
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
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
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/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
%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
/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.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -23,6 +23,7 @@ var FSObject = new ActiveXObject("Scripting.FileSystemObject");
if (!FSObject.FileExists(prolog_path)) {
WScript.Echo("Error! Cannot find ciaosh.cpx at the expected place!");
WScript.Echo("Please, edit the script and update the location of the ciaosh.cpx executable.");
WScript.Quit(1);
}
@@ -40,6 +41,15 @@ else {
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"))
@@ -48,15 +58,16 @@ if (!FSObject.FolderExists(logtalk_home + "\\bin"))
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalk_ciao.pl", true);
f.WriteLine(":- ensure_loaded('\$LOGTALKUSER/configs/ciao_aux.config').");
f.WriteLine(":- set_prolog_flag(multi_arity_warnings, off).");
f.WriteLine(":- ensure_loaded('\$LOGTALKHOME/compiler/logtalk.pl').");
f.WriteLine(":- ensure_loaded('\$LOGTALKUSER/libpaths/libpaths.pl').");
f.WriteLine(":- op(600, xfy, ::).");
f.WriteLine(":- op(600, fy, ::).");
f.WriteLine(":- op(600, fy, ^^).");
f.WriteLine(":- op(200, fy, +).");
f.WriteLine(":- op(200, fy, ?).");
f.WriteLine(":- op(200, fy, @).");
f.WriteLine(":- op(200, fy, -).");
f.WriteLine(":- op(600, fy, ::).");
f.WriteLine(":- op(600, fy, ^^).");
f.WriteLine(":- op(200, fy, +).");
f.WriteLine(":- op(200, fy, ?).");
f.WriteLine(":- op(200, fy, @).");
f.WriteLine(":- op(200, fy, -).");
f.Close();
var ProgramsPath = WshShell.SpecialFolders("AllUsersPrograms");
@@ -78,6 +89,12 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
WScript.Echo('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 - CIAO" shortcut.');
WScript.Echo('');
WScript.Quit(0);

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named ciaolgt for running Logtalk with CIAO..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -33,20 +42,24 @@ cd "$LOGTALKHOME"
mkdir -p bin
cd bin
echo ":- ensure_loaded('\$LOGTALKUSER/configs/ciao_aux.config')." > logtalk_ciao.rc
echo ":- set_prolog_flag(multi_arity_warnings, off)." >> 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 ":- 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 "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 ciaolgt script."
echo
echo "The first call to script the must be made as root or using sudo."
echo

View File

@@ -1,6 +1,6 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -12,7 +12,7 @@ if (WScript.Arguments.Unnamed.Length > 0) {
WScript.Echo('');
WScript.Echo('Creating a shortcut named "Logtalk - ECLiPSe" for running Logtalk with');
WScript.Echo('ECLiPSe 5.8 (edit the script if you are using other version)...');
WScript.Echo('ECLiPSe 5.8 (edit this script if you are using a different version)...');
WScript.Echo('');
var WshShell = new ActiveXObject("WScript.Shell");
@@ -23,6 +23,7 @@ var FSObject = new ActiveXObject("Scripting.FileSystemObject");
if (!FSObject.FileExists(prolog_path)) {
WScript.Echo("Error! Cannot find eclipse.exe at the expected place!");
WScript.Echo("Please, edit the script and update the location of the eclipse.exe executable.");
WScript.Quit(1);
}
@@ -40,6 +41,15 @@ else {
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"))
@@ -83,6 +93,9 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
WScript.Echo('to use the shortcut.');
WScript.Echo('');
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
WScript.Echo('"Logtalk - ECLiPSe" shortcut.');
WScript.Echo('');
WScript.Quit(0);

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named eclipselgt for running Logtalk with ECLiPSe..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -44,6 +53,6 @@ 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 "Users must 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.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -23,6 +23,7 @@ var FSObject = new ActiveXObject("Scripting.FileSystemObject");
if (!FSObject.FileExists(prolog_path)) {
WScript.Echo("Error! Cannot find gprolog.exe at the expected place!");
WScript.Echo("Please, edit the script and update the location of the gprolog.exe executable.");
WScript.Quit(1);
}
@@ -40,6 +41,15 @@ else {
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"))
@@ -72,6 +82,9 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
WScript.Echo('to use the shortcut.');
WScript.Echo('');
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
WScript.Echo('"Logtalk - GNU Prolog" shortcut.');
WScript.Echo('');
WScript.Quit(0);

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named gplgt for running Logtalk with GNU Prolog..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -35,10 +44,10 @@ 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
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 "Users must 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.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -50,6 +50,15 @@ else {
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"))
@@ -81,6 +90,9 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
WScript.Echo('to use the shortcut.');
WScript.Echo('');
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
WScript.Echo('"Logtalk - K-Prolog" shortcut.');
WScript.Echo('');
WScript.Quit(0);

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named plclgt for running Logtalk with K-Prolog..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -40,6 +49,6 @@ echo "\$PLC/plc -h 2048k -l 1024k -g 2048k -e \"(consult('\\\$LOGTALKHOME/bin/lo
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 "Users must define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named qplgt for running Logtalk with Qu-Prolog..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -31,15 +40,14 @@ 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
chdir('../libpaths/'), fcompile('libpaths.pl', [assemble_only(true)]), load(libpaths)." | qp -T 16 -s 2048 -d 1024 -h 2048
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
qc -T 16 -s 2048 -d 1024 -h 2048 -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
@@ -48,6 +56,6 @@ 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 "Users must 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.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -23,6 +23,7 @@ var FSObject = new ActiveXObject("Scripting.FileSystemObject");
if (!FSObject.FileExists(prolog_path)) {
WScript.Echo("Error! Cannot find spwin.exe at the expected place!");
WScript.Echo("Please, edit the script and update the location of the spwin.exe executable.");
WScript.Quit(1);
}
@@ -40,6 +41,15 @@ else {
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"))
@@ -71,6 +81,9 @@ WScript.Echo('the Start Menu Programs. Make sure that the environment variables'
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
WScript.Echo('to use the shortcut.');
WScript.Echo('');
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
WScript.Echo('"Logtalk - SICStus Prolog" shortcut.');
WScript.Echo('');
WScript.Quit(0);

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named sicstuslgt for running Logtalk with SICStus Prolog..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -41,6 +50,6 @@ 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 "Users must 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.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -23,6 +23,7 @@ var FSObject = new ActiveXObject("Scripting.FileSystemObject");
if (!FSObject.FileExists(prolog_path)) {
WScript.Echo("Error! Cannot find plwin.exe at the expected place!");
WScript.Echo("Please, edit the script and update the location of the plwin.exe executable.");
WScript.Quit(1);
}
@@ -40,6 +41,15 @@ else {
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"))
@@ -78,6 +88,9 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
WScript.Echo('to use the shortcut.');
WScript.Echo('');
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
WScript.Echo('"Logtalk - SWI-Prolog" shortcut.');
WScript.Echo('');
WScript.Quit(0);

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named swilgt for running Logtalk with SWI-Prolog..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -46,6 +55,6 @@ 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 "Users must define the environment variables LOGTALKHOME and"
echo "LOGTALKUSER in order to use the script."
echo

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named xsblgt for running Logtalk with XSB..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -46,11 +55,9 @@ 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 "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 xsblgt 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 "The first call to the script must be made as root or using sudo."
echo

View File

@@ -1,11 +1,11 @@
// =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.25.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
var prolog_path = "C:\\Program Files\\Yap\\bin\\yap.exe";
var prolog_path = "C:\\Yap\\bin\\yap.exe";
if (WScript.Arguments.Unnamed.Length > 0) {
usage_help();
@@ -21,6 +21,7 @@ var FSObject = new ActiveXObject("Scripting.FileSystemObject");
if (!FSObject.FileExists(prolog_path)) {
WScript.Echo("Error! Cannot find yap.exe at the expected place!");
WScript.Echo("Please edit the script and update the location of the yap.exe executable.");
WScript.Quit(1);
}
@@ -40,6 +41,15 @@ else {
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"))
@@ -70,6 +80,9 @@ WScript.Echo('Done. The "Logtalk - YAP" shortcut was been added to the Start Men
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('Users must run the batch script "cplgtdirs" before using the');
WScript.Echo('"Logtalk - YAP" shortcut.');
WScript.Echo('');
WScript.Quit(0);

View File

@@ -1,14 +1,15 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
echo
echo "Creating a script named yaplgt for running Logtalk with YAP..."
echo
if ! [ "$LOGTALKHOME" ]
then
@@ -17,13 +18,21 @@ then
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 "$1" ]; then
if ! [ -d "$prefix" ]; then
echo "Directory prefix does not exist!"
echo
exit 1
@@ -41,6 +50,6 @@ 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 "Users must 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.1
// Release 2.26.2
//
// Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
// =================================================================
@@ -23,6 +23,17 @@ else {
WScript.Quit(1);
}
var FSObject = new ActiveXObject("Scripting.FileSystemObject");
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);
}
WScript.Echo('Creating shortcut Logtalk - CIAO...');
WshShell.Run("cscript %LOGTALKHOME%\\scripts\\make_ciaolgt.js", true);
@@ -41,6 +52,9 @@ WshShell.Run("cscript %LOGTALKHOME%\\scripts\\make_sicstuslgt.js", true);
WScript.Echo('Creating shortcut Logtalk - SWI-Prolog...');
WshShell.Run("cscript %LOGTALKHOME%\\scripts\\make_swilgt.js", true);
WScript.Echo('Creating shortcut Logtalk - XSB CVS...');
WshShell.Run("cscript %LOGTALKHOME%\\scripts\\make_xsbcvslgt.js", true);
WScript.Echo('Creating shortcut Logtalk - YAP...');
WshShell.Run("cscript %LOGTALKHOME%\\scripts\\make_yaplgt.js", true);
@@ -49,6 +63,9 @@ WScript.Echo('Done. Links to the created scripts was been added to the Start Me
WScript.Echo('Programs. Make sure that the environment variables LOGTALKHOME and');
WScript.Echo('LOGTALKUSER are defined for all users wishing to use the shortcuts.');
WScript.Echo('');
WScript.Echo('Users must run the batch script "cplgtdirs" before using the Logtalk -');
WScript.Echo('Prolog integration scripts.');
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');

View File

@@ -1,8 +1,8 @@
#! /bin/sh
#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.25.1
## Release 2.26.2
##
## Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
## =================================================================
@@ -18,6 +18,14 @@ then
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
@@ -30,57 +38,71 @@ if ! [ -d "$prefix" ]; then
exit 1
fi
./make_ciaolgt.sh $prefix > /dev/null
if [ $? ]; then
./make_ciaolgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "ciaolgt script created"
else
echo "ciaolgt script creation failed"
fi
./make_eclipselgt.sh $prefix > /dev/null
if [ $? ]; then
./make_eclipselgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "eclipselgt script created"
else
echo "eclipselgt script creation failed"
fi
./make_gplgt.sh $prefix > /dev/null
if [ $? ]; then
./make_gplgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "gplgt script created"
else
echo "gplgt script creation failed"
fi
./make_plclgt.sh $prefix > /dev/null
if [ $? ]; then
./make_plclgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "plclgt script created"
else
echo "plclgt script creation failed"
fi
./make_sicstuslgt.sh $prefix > /dev/null
if [ $? ]; then
./make_qplgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "qplgt script created"
else
echo "qplgt script creation failed"
fi
./make_sicstuslgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "sicstuslgt script created"
else
echo "sicstuslgt script creation failed"
fi
./make_swilgt.sh $prefix > /dev/null
if [ $? ]; then
./make_swilgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "swilgt script created"
else
echo "swilgt script creation failed"
fi
./make_xsblgt.sh $prefix > /dev/null
if [ $? ]; then
./make_xsblgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "xsblgt script created"
else
echo "xsblgt script creation failed"
fi
./make_yaplgt.sh $prefix > /dev/null
if [ $? ]; then
./make_xsbcvslgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "xsbcvslgt script created"
else
echo "xsbcvslgt script creation failed"
fi
./make_yaplgt.sh $prefix > /dev/null 2> /dev/null
if [[ $? -eq 0 ]]; then
echo "yaplgt script created"
else
echo "yaplgt script creation failed"
@@ -89,7 +111,7 @@ 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 "execution path. Users must 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"