Changeset 4423

Show
Ignore:
Timestamp:
08/14/08 12:49:40 (5 months ago)
Author:
pmoura
Message:

Added ECLiPSe 6.0 config files. Modified the POSIX script "eclipselgt" to test for both ECLiPSe 5.10 and 6.0 versions. Added Windows shortcut to start Logtalk with ECLiPSe 6.0.

Location:
trunk
Files:
4 added
3 removed
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/configs/NOTES.txt

    r4411 r4423  
    164164ECLiPSe 5.10#26 or later versions 
    165165 
    166     eclipse.config 
    167     eclipseiso.config 
     166    eclipse5.config 
     167    eclipse5iso.config 
    168168 
    169169    There are two configs files for this compiler. The first one, named  
    170     "eclipse.config", should be used when, for some reason, you don't want  
    171     to load the "iso" library. The second file, "eclipseiso.config" contains  
     170    "eclipse5.config", should be used when, for some reason, you don't want  
     171    to load the "iso" library. The second file, "eclipse5iso.config" contains  
    172172    a call to load the "iso" library. Both config files may be used with 
    173173    ECLiPSe 5.10#26 or later versions. 
    174174 
    175     You should use the "eclipseiso.config" whenever possible. The alternative  
     175    You should use the "eclipse5iso.config" whenever possible. The alternative  
    176176    config file may not contain all the needed definitions for ISO Prolog  
    177177    predicates that are needed for compiling Logtalk itself, the Logtalk  
     
    204204    built-in predicate compile/1, new clauses for dynamic predicates are  
    205205    appended to the old ones instead of replacing them! 
     206 
     207 
     208ECLiPSe 6.0 or later versions 
     209 
     210    eclipse6.config 
     211    eclipse6iso.config 
     212 
     213    (see comments above about ECLiPSe 5.10 version) 
    206214 
    207215 
  • trunk/integration/eclipselgt.sh

    r4411 r4423  
    7474echo 
    7575 
    76 exec eclipse -b "$LOGTALKHOME/integration/logtalk_eclipse.pl" "$@" 
     76if eclipse -e "halt." 2>&1 | grep "Version 5.10" 2>&1 >/dev/null; then 
     77    exec eclipse -b "$LOGTALKHOME/integration/logtalk_eclipse5.pl" "$@" 
     78else 
     79    exec eclipse -b "$LOGTALKHOME/integration/logtalk_eclipse6.pl" "$@" 
     80fi 
  • trunk/integration/NOTES.txt

    r4411 r4423  
    2020* CIAO (version 1.10#5 or later):          ciaolgt    (first run must use sudo) 
    2121* CxProlog (version 0.97.1 or later):      cxlgt 
    22 * ECLiPSe (version 5.10#26 or later):      eclipselgt 
     22* ECLiPSe (versions 5.10, 6.0):            eclipselgt 
    2323* GNU Prolog (version 1.3.0 or later):     gplgt 
    2424* K-Prolog (version 5.1.2a or later):      plclgt 
  • trunk/RELEASE_NOTES.txt

    r4422 r4423  
    2222    Added support for meta-calls whose closure arguments are explicitly  
    2323    qualified (using either Object::Closure or Module:Closure). 
     24 
     25    Added ECLiPSe 6.0 config files. Modified the POSIX script "eclipselgt"  
     26    to test for both ECLiPSe 5.10 and 6.0 versions. Added Windows shortcut  
     27    to start Logtalk with ECLiPSe 6.0. 
    2428 
    2529    Updated the GNU Prolog config file to allow Logtalk to recognize as  
  • trunk/scripts/debian/postinst

    r4411 r4423  
    4343echo "* CIAO (version 1.10#5 or later):          ciaolgt    (first run must use sudo)" 
    4444echo "* CxProlog (version 0.97.1 or later):      cxlgt" 
    45 echo "* ECLiPSe (version 5.10#26 or later):      eclipselgt" 
     45echo "* ECLiPSe (versions 5.10, 6.0):            eclipselgt" 
    4646echo "* GNU Prolog (version 1.3.0 or later):     gplgt" 
    4747echo "* K-Prolog (version 5.1.x):                plclgt" 
  • trunk/scripts/install.sh

    r4411 r4423  
    8787echo "* CIAO (version 1.10#5 or later):          ciaolgt    (first run must use sudo)" 
    8888echo "* CxProlog (version 0.97.1 or later):      cxlgt" 
    89 echo "* ECLiPSe (version 5.10#26 or later):      eclipselgt" 
     89echo "* ECLiPSe (versions 5.10, 6.0):            eclipselgt" 
    9090echo "* GNU Prolog (version 1.3.0 or later):     gplgt" 
    9191echo "* K-Prolog (version 5.1.2a or later):      plclgt" 
  • trunk/scripts/linux/logtalk.spec

    r4411 r4423  
    137137echo "* CIAO (version 1.10#5 or later):          ciaolgt    (first run must use sudo)" 
    138138echo "* CxProlog (version 0.97.1 or later):      cxlgt" 
    139 echo "* ECLiPSe (version 5.10#26 or later):      eclipselgt" 
     139echo "* ECLiPSe (versions 5.10, 6.0):            eclipselgt" 
    140140echo "* GNU Prolog (version 1.3.0 or later):     gplgt" 
    141141echo "* K-Prolog (version 5.1.x):                plclgt" 
  • trunk/scripts/macosx/Portfile

    r4411 r4423  
    5454    ui_msg "* CIAO (version 1.10#5 or later):          ciaolgt    (first run must use sudo)" 
    5555    ui_msg "* CxProlog (version 0.97.1 or later):      cxlgt" 
    56     ui_msg "* ECLiPSe (version 5.10#26 or later):      eclipselgt" 
     56    ui_msg "* ECLiPSe (versions 5.10, 6.0):            eclipselgt" 
    5757    ui_msg "* GNU Prolog (version 1.3.0 or later):     gplgt" 
    5858    ui_msg "* K-Prolog (version 5.1.x):                plclgt" 
  • trunk/scripts/windows/logtalk.iss

    r4411 r4423  
    5555Name: "prolog\ciao"; Description: "Ciao Prolog integration (version 1.10#5 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning 
    5656Name: "prolog\cxprolog"; Description: "CxProlog integration (version 0.97.1 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning 
    57 Name: "prolog\eclipse"; Description: "ECLiPSe integration (version 5.10#26 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning 
     57Name: "prolog\eclipse"; Description: "ECLiPSe integration (versions 5.10, 6.0)"; Types: full prolog custom; Flags: disablenouninstallwarning 
    5858Name: "prolog\gprolog"; Description: "GNU Prolog integration (version 1.3.0 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning 
    5959Name: "prolog\plc"; Description: "K-Prolog integration (version 5.1.x)"; Types: full prolog custom; Flags: disablenouninstallwarning 
     
    115115Name: "{group}\Logtalk - CxProlog"; Filename: "{code:GetCxExePath}"; Parameters: "--goal ""silent_consult('%LOGTALKHOME%/integration/logtalk_cx.pl')"""; Comment: "Runs Logtalk with CxProlog"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\cxprolog; Flags: createonlyiffileexists 
    116116 
    117 Name: "{group}\Logtalk - ECLiPSe"; Filename: "{code:GetEclipseExePath}"; Parameters: "-b ""%LOGTALKHOME%\integration\logtalk_eclipse.pl"""; Comment: "Runs Logtalk with ECLiPSe"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\eclipse; Flags: createonlyiffileexists 
     117Name: "{group}\Logtalk - ECLiPSe 5"; Filename: "{code:GetEclipse5ExePath}"; Parameters: "-b ""%LOGTALKHOME%\integration\logtalk_eclipse5.pl"""; Comment: "Runs Logtalk with ECLiPSe 5"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\eclipse; Flags: createonlyiffileexists 
     118 
     119Name: "{group}\Logtalk - ECLiPSe 6"; Filename: "{code:GetEclipse6ExePath}"; Parameters: "-b ""%LOGTALKHOME%\integration\logtalk_eclipse6.pl"""; Comment: "Runs Logtalk with ECLiPSe 6"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\eclipse; Flags: createonlyiffileexists 
    118120 
    119121Name: "{group}\Logtalk - GNU Prolog"; Filename: "{code:GetGPExePath}"; Parameters: "--init-goal ""['$LOGTALKUSER/configs/gnu.config', '$LOGTALKHOME/integration/logtalk_gp.pl', '$LOGTALKUSER/libpaths/libpaths.pl']"""; Comment: "Runs Logtalk with GNU Prolog"; WorkingDir: "{code:GetLgtUserDir}"; Components: prolog\gprolog; Flags: createonlyiffileexists 
     
    271273end; 
    272274 
    273 function GetEclipseExePath(Param: String): String; 
     275function GetEclipse5ExePath(Param: String): String; 
    274276var 
    275277  ECLIPSEDIR: String; 
    276278begin 
    277   if RegQueryStringValue(HKLM, 'Software\IC-Parc\Eclipse\5.11\', 'ECLIPSEDIR', ECLIPSEDIR) then 
     279  if RegQueryStringValue(HKLM, 'Software\IC-Parc\Eclipse\5.10\', 'ECLIPSEDIR', ECLIPSEDIR) then 
    278280    Result := ECLIPSEDIR + '\lib\i386_nt\eclipse.exe' 
    279   else if RegQueryStringValue(HKLM, 'Software\IC-Parc\Eclipse\5.10\', 'ECLIPSEDIR', ECLIPSEDIR) then 
     281  else 
     282    Result := 'lgt_exe_does_not_exist' 
     283end; 
     284 
     285function GetEclipse6ExePath(Param: String): String; 
     286var 
     287  ECLIPSEDIR: String; 
     288begin 
     289  if RegQueryStringValue(HKLM, 'Software\IC-Parc\Eclipse\6.0\', 'ECLIPSEDIR', ECLIPSEDIR) then 
    280290    Result := ECLIPSEDIR + '\lib\i386_nt\eclipse.exe' 
    281291  else