Logtalk 2.20.1 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1117 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@@ -44,6 +44,10 @@ The following scripts 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)
|
||||
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 a user with
|
||||
administrative rights)
|
||||
|
||||
make_eclipselgt.sh
|
||||
makes a shell script named eclipselgt for running Logtalk with ECLiPSe
|
||||
@@ -55,6 +59,14 @@ make_eclipselgt.js
|
||||
|
||||
make_gplgt.sh
|
||||
makes a shell script named gplgt for running Logtalk with GNU Prolog
|
||||
make_gplgt.js
|
||||
makes a Windows shortcut named "Logtalk - GNU Prolog" for running Logtalk
|
||||
with GNU Prolog
|
||||
make_gplgt_exe.js
|
||||
makes a new GNU Prolog top level named gplgt.exe and creates a Windows
|
||||
shortcut named "Logtalk - GNU Prolog" for running it (needs the developer
|
||||
tools nasm.exe and cp.exe installed; both the developer tools and the GNU
|
||||
Prolog installation bin directory must be in the system path)
|
||||
|
||||
make_qplgt.sh
|
||||
makes a shell script named qplgt for running Logtalk with Qu-Prolog
|
||||
@@ -89,7 +101,8 @@ Logtalk installation directory) to be defined. In addition, the shell scripts
|
||||
accept as an optional argument a prefix for the location of a link to the
|
||||
scripts (default is /usr/local, creating the links in /usr/local/bin). Please
|
||||
note that the environment variable LOGTALKHOME must be defined in order to run
|
||||
the *lgt scripts that are created by the shell scripts above.
|
||||
the *lgt scripts that are created by the shell scripts above or the Windows
|
||||
shortcuts (see the INSTALL file for details on setting the variable).
|
||||
|
||||
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
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.0
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,5 +1,5 @@
|
||||
Package: logtalk
|
||||
Version: 2.20.0
|
||||
Version: 2.20.1
|
||||
Section: languages
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
@@ -16,25 +16,25 @@ else
|
||||
prefix="$1"
|
||||
fi
|
||||
|
||||
rm -rf $prefix/lgt2200
|
||||
rm -rf $prefix/lgt2201
|
||||
rm -f $prefix/logtalk
|
||||
|
||||
mkdir $prefix/lgt2200
|
||||
mkdir $prefix/lgt2201
|
||||
|
||||
cd ..
|
||||
cp -R * $prefix/lgt2200
|
||||
cp -R * $prefix/lgt2201
|
||||
|
||||
cd $prefix
|
||||
chmod -R go-w,a+r lgt2200
|
||||
chmod a+x lgt2200
|
||||
chmod a+x lgt2200/misc/*.sh
|
||||
chmod a+x lgt2200/xml/*.sh
|
||||
ln -sf lgt2200 logtalk
|
||||
chmod -R go-w,a+r lgt2201
|
||||
chmod a+x lgt2201
|
||||
chmod a+x lgt2201/misc/*.sh
|
||||
chmod a+x lgt2201/xml/*.sh
|
||||
ln -sf lgt2201 logtalk
|
||||
|
||||
cd bin
|
||||
ln -sf ../lgt2200/misc/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../lgt2200/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../lgt2200/xml/lgt2html.sh lgt2html
|
||||
ln -sf ../lgt2201/misc/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../lgt2201/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../lgt2201/xml/lgt2html.sh lgt2html
|
||||
|
||||
echo "Logtalk installation completed."
|
||||
echo
|
||||
|
@@ -1,11 +1,11 @@
|
||||
Name: logtalk
|
||||
Summary: Logtalk - Open source object-oriented extension to Prolog
|
||||
Version: 2.20.0
|
||||
Version: 2.20.1
|
||||
Release: 1
|
||||
License: Artistic License 2.0
|
||||
Group: Development/Languages
|
||||
Packager: Paulo Moura <pmoura@logtalk.org>
|
||||
Source: http://www.logtalk.org/files/lgt2200.tar.gz
|
||||
Source: http://www.logtalk.org/files/lgt2201.tgz
|
||||
BuildArchitectures: noarch
|
||||
URL: http://www.logtalk.org/
|
||||
Prefix: /usr/local
|
||||
@@ -13,42 +13,42 @@ 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 lgt2200
|
||||
%setup -n lgt2201
|
||||
%build
|
||||
%install
|
||||
rm -rf /usr/local/lgt2200
|
||||
rm -rf /usr/local/lgt2201
|
||||
rm -f /usr/local/logtalk
|
||||
mkdir /usr/local/lgt2200
|
||||
cp -R * /usr/local/lgt2200
|
||||
mkdir /usr/local/lgt2201
|
||||
cp -R * /usr/local/lgt2201
|
||||
cd /usr/local
|
||||
chmod -R go-w,a+r lgt2200
|
||||
chmod a+x lgt2200
|
||||
chmod a+x lgt2200/misc/*.sh
|
||||
chmod a+x lgt2200/xml/*.sh
|
||||
ln -sf lgt2200 logtalk
|
||||
chmod -R go-w,a+r lgt2201
|
||||
chmod a+x lgt2201
|
||||
chmod a+x lgt2201/misc/*.sh
|
||||
chmod a+x lgt2201/xml/*.sh
|
||||
ln -sf lgt2201 logtalk
|
||||
cd bin
|
||||
ln -sf ../lgt2200/misc/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../lgt2200/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../lgt2200/xml/lgt2html.sh lgt2html
|
||||
ln -sf ../lgt2201/misc/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../lgt2201/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../lgt2201/xml/lgt2html.sh lgt2html
|
||||
%clean
|
||||
%files
|
||||
%defattr(-,root,users)
|
||||
%doc /usr/local/lgt2200/BIBLIOGRAPHY
|
||||
%doc /usr/local/lgt2200/INSTALL
|
||||
%doc /usr/local/lgt2200/LICENSE
|
||||
%doc /usr/local/lgt2200/QUICK_START
|
||||
%doc /usr/local/lgt2200/README
|
||||
%doc /usr/local/lgt2200/RELEASE_NOTES
|
||||
%doc /usr/local/lgt2200/UPGRADING
|
||||
/usr/local/lgt2200/compiler
|
||||
/usr/local/lgt2200/configs
|
||||
/usr/local/lgt2200/examples
|
||||
/usr/local/lgt2200/library
|
||||
%docdir /usr/local/lgt2200/manuals
|
||||
/usr/local/lgt2200/manuals
|
||||
/usr/local/lgt2200/misc
|
||||
/usr/local/lgt2200/wenv
|
||||
/usr/local/lgt2200/xml
|
||||
%doc /usr/local/lgt2201/BIBLIOGRAPHY
|
||||
%doc /usr/local/lgt2201/INSTALL
|
||||
%doc /usr/local/lgt2201/LICENSE
|
||||
%doc /usr/local/lgt2201/QUICK_START
|
||||
%doc /usr/local/lgt2201/README
|
||||
%doc /usr/local/lgt2201/RELEASE_NOTES
|
||||
%doc /usr/local/lgt2201/UPGRADING
|
||||
/usr/local/lgt2201/compiler
|
||||
/usr/local/lgt2201/configs
|
||||
/usr/local/lgt2201/examples
|
||||
/usr/local/lgt2201/library
|
||||
%docdir /usr/local/lgt2201/manuals
|
||||
/usr/local/lgt2201/manuals
|
||||
/usr/local/lgt2201/misc
|
||||
/usr/local/lgt2201/wenv
|
||||
/usr/local/lgt2201/xml
|
||||
/usr/local/logtalk
|
||||
/usr/local/bin/cplgtdirs
|
||||
/usr/local/bin/lgt2pdf
|
||||
|
92
Logtalk/misc/make_ciaolgt.js
Normal file
92
Logtalk/misc/make_ciaolgt.js
Normal file
@@ -0,0 +1,92 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
usage_help();
|
||||
WScript.Quit(0);
|
||||
}
|
||||
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Creating a shortcut named "Logtalk - CIAO" for running Logtalk');
|
||||
WScript.Echo('with CIAO...');
|
||||
WScript.Echo('');
|
||||
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
|
||||
var prolog_path = WshShell.RegRead("HKLM\\Software\\Ciao Prolog\\ciao_dir") + "\\shell\\ciaosh.cpx";
|
||||
|
||||
var FSObject = new ActiveXObject("Scripting.FileSystemObject");
|
||||
|
||||
if (!FSObject.FileExists(prolog_path)) {
|
||||
WScript.Echo("Error! Cannot find ciaosh.cpx at the expected place!");
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
var WshProcessEnv = WshShell.Environment("PROCESS");
|
||||
var WshSystemEnv = WshShell.Environment("SYSTEM");
|
||||
var WshUserEnv = WshShell.Environment("USER");
|
||||
var logtalk_home;
|
||||
|
||||
if (WshProcessEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshProcessEnv.Item("LOGTALKHOME");
|
||||
else if (WshSystemEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshSystemEnv.Item("LOGTALKHOME");
|
||||
else if (WshUserEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshUserEnv.Item("LOGTALKHOME")
|
||||
else {
|
||||
WScript.Echo("Error! The system environment variable LOGTALKHOME must be defined first!");
|
||||
usage_help();
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
logtalk_home = logtalk_home.replace(/\\/g, "\\\\");
|
||||
|
||||
if (!FSObject.FolderExists(logtalk_home + "\\bin"))
|
||||
FSObject.CreateFolder(logtalk_home + "\\bin");
|
||||
|
||||
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalkciao.pl", true);
|
||||
|
||||
f.WriteLine(":- ensure_loaded('\$LOGTALKHOME/configs/ciao_aux.config').");
|
||||
f.WriteLine(":- ensure_loaded('\$LOGTALKHOME/compiler/logtalk.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.Close();
|
||||
|
||||
var ProgramsPath = WshShell.SpecialFolders("AllUsersPrograms");
|
||||
var link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk - CIAO.lnk");
|
||||
link.Arguments = "-l %LOGTALKHOME%\\bin\\logtalkciao.pl";
|
||||
link.Description = "Runs Logtalk with CIAO";
|
||||
link.IconLocation = "app.exe,1";
|
||||
link.TargetPath = prolog_path;
|
||||
link.WindowStyle = 1;
|
||||
link.WorkingDirectory = logtalk_home;
|
||||
link.Save();
|
||||
|
||||
WScript.Echo('Done. The "Logtalk - CIAO" shortcut was been added to the');
|
||||
WScript.Echo('Start Menu Programs. Make sure that the LOGTALKHOME environment');
|
||||
WScript.Echo('variable is defined for all users wishing to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
||||
function usage_help() {
|
||||
WScript.Echo('');
|
||||
WScript.Echo('This script creates a shortcut named "Logtalk - CIAO" for running Logtalk');
|
||||
WScript.Echo('with CIAO. 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('');
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.0
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
87
Logtalk/misc/make_gplgt.js
Normal file
87
Logtalk/misc/make_gplgt.js
Normal file
@@ -0,0 +1,87 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
usage_help();
|
||||
WScript.Quit(0);
|
||||
}
|
||||
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Creating a shortcut named "Logtalk - GNU Prolog" for running Logtalk');
|
||||
WScript.Echo('with GNU Prolog...');
|
||||
WScript.Echo('');
|
||||
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
|
||||
var prolog_path = WshShell.RegRead("HKCU\\Software\\GnuProlog\\RootPath") + "\\bin\\gprolog.exe";
|
||||
|
||||
var FSObject = new ActiveXObject("Scripting.FileSystemObject");
|
||||
|
||||
if (!FSObject.FileExists(prolog_path)) {
|
||||
WScript.Echo("Error! Cannot find gprolog.exe at the expected place!");
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
var WshProcessEnv = WshShell.Environment("PROCESS");
|
||||
var WshSystemEnv = WshShell.Environment("SYSTEM");
|
||||
var WshUserEnv = WshShell.Environment("USER");
|
||||
var logtalk_home;
|
||||
|
||||
if (WshProcessEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshProcessEnv.Item("LOGTALKHOME");
|
||||
else if (WshSystemEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshSystemEnv.Item("LOGTALKHOME");
|
||||
else if (WshUserEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshUserEnv.Item("LOGTALKHOME")
|
||||
else {
|
||||
WScript.Echo("Error! The system environment variable LOGTALKHOME must be defined first!");
|
||||
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 + "\\configs\\gnu.config", logtalk_home + "\\bin\\gnu.pl");
|
||||
|
||||
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalkgp.pl", true);
|
||||
f.WriteLine(":- built_in.");
|
||||
f.Close();
|
||||
|
||||
WshShell.Run("cmd /c type " + logtalk_home + "\\compiler\\logtalk.pl" + " >> " + logtalk_home + "\\bin\\logtalkgp.pl", true);
|
||||
|
||||
var ProgramsPath = WshShell.SpecialFolders("AllUsersPrograms");
|
||||
var link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk - GNU Prolog.lnk");
|
||||
link.Arguments = "--init-goal \"['bin/gnu.pl', 'bin/logtalkgp.pl']\"";
|
||||
link.Description = "Runs Logtalk with GNU Prolog";
|
||||
link.IconLocation = "app.exe,1";
|
||||
link.TargetPath = prolog_path;
|
||||
link.WindowStyle = 1;
|
||||
link.WorkingDirectory = logtalk_home;
|
||||
link.Save();
|
||||
|
||||
WScript.Echo('Done. The "Logtalk - GNU Prolog" shortcut was been added to the');
|
||||
WScript.Echo('Start Menu Programs. Make sure that the LOGTALKHOME environment');
|
||||
WScript.Echo('variable is defined for all users wishing to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
||||
function usage_help() {
|
||||
WScript.Echo('');
|
||||
WScript.Echo('This script creates a shortcut named "Logtalk - GNU Prolog" for running Logtalk');
|
||||
WScript.Echo('with GNU Prolog. 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('');
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
92
Logtalk/misc/make_gplgt_exe.js
Normal file
92
Logtalk/misc/make_gplgt_exe.js
Normal file
@@ -0,0 +1,92 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
usage_help();
|
||||
WScript.Quit(0);
|
||||
}
|
||||
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Creating a shortcut named "Logtalk - GNU Prolog (precompiled)" for');
|
||||
WScript.Echo('running Logtalk with GNU Prolog using a new precompiled top-level...');
|
||||
WScript.Echo('');
|
||||
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
|
||||
var prolog_path = WshShell.RegRead("HKCU\\Software\\GnuProlog\\RootPath") + "\\bin";
|
||||
|
||||
var FSObject = new ActiveXObject("Scripting.FileSystemObject");
|
||||
|
||||
if (!FSObject.FileExists(prolog_path + "\\gplc.exe")) {
|
||||
WScript.Echo("Error! Cannot find gplc.exe at the expected place!");
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
var WshProcessEnv = WshShell.Environment("PROCESS");
|
||||
var WshSystemEnv = WshShell.Environment("SYSTEM");
|
||||
var WshUserEnv = WshShell.Environment("USER");
|
||||
var logtalk_home;
|
||||
|
||||
if (WshProcessEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshProcessEnv.Item("LOGTALKHOME");
|
||||
else if (WshSystemEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshSystemEnv.Item("LOGTALKHOME");
|
||||
else if (WshUserEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshUserEnv.Item("LOGTALKHOME")
|
||||
else {
|
||||
WScript.Echo("Error! The system environment variable LOGTALKHOME must be defined first!");
|
||||
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 + "\\configs\\gnu.config", logtalk_home + "\\bin\\gnu.pl");
|
||||
|
||||
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalkgp.pl", true);
|
||||
f.WriteLine(":- built_in.");
|
||||
f.Close();
|
||||
|
||||
WshShell.Run("cmd /c type " + logtalk_home + "\\compiler\\logtalk.pl" + " >> " + logtalk_home + "\\bin\\logtalkgp.pl", true);
|
||||
|
||||
FSObject.CopyFile(prolog_path + "\\w32guicons.dll", logtalk_home + "\\bin\\w32guicons.dll");
|
||||
|
||||
WshShell.Run("cmd /c gplc --gui-console -o " + logtalk_home + "\\bin\\gplgt.exe " + logtalk_home + "\\bin\\gnu.pl " + logtalk_home + "\\bin\\logtalkgp.pl", true);
|
||||
|
||||
var ProgramsPath = WshShell.SpecialFolders("AllUsersPrograms");
|
||||
var link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk - GNU Prolog (precompiled).lnk");
|
||||
link.Arguments = "";
|
||||
link.Description = "Runs Logtalk with GNU Prolog";
|
||||
link.IconLocation = "app.exe,1";
|
||||
link.TargetPath = logtalk_home + "\\bin\\gplgt.exe";
|
||||
link.WindowStyle = 1;
|
||||
link.WorkingDirectory = logtalk_home;
|
||||
link.Save();
|
||||
|
||||
WScript.Echo('Done. The "Logtalk - GNU Prolog (precompiled)" shortcut was been');
|
||||
WScript.Echo('added to the Start Menu Programs. Make sure that the LOGTALKHOME');
|
||||
WScript.Echo('environment variable is defined for all users wishing to use the');
|
||||
WScript.Echo('shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
||||
function usage_help() {
|
||||
WScript.Echo('');
|
||||
WScript.Echo('This script creates a shortcut named "Logtalk - GNU Prolog (precompiled)"');
|
||||
WScript.Echo('for running Logtalk with GNU Prolog. The script must be run by a user with');
|
||||
WScript.Echo('administrative rights. The LOGTALKHOME environment variable must be defined');
|
||||
WScript.Echo('before running this script.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Usage:');
|
||||
WScript.Echo(' ' + WScript.ScriptName + ' help');
|
||||
WScript.Echo(' ' + WScript.ScriptName);
|
||||
WScript.Echo('');
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.0
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.0
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.0
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
Reference in New Issue
Block a user