]> OCCT Git - occt-wok.git/commitdiff
0024210: Remove non maintained WOK scripts
authorkgv <kgv@opencascade.com>
Thu, 3 Oct 2013 07:53:57 +0000 (11:53 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 3 Oct 2013 07:57:35 +0000 (11:57 +0400)
Changing Default for generation building projects on Linux platform to cmake

collect_binary_without_libs.bat
collect_binary_without_libs.sh
src/WOKsite/tclshrc_Wok [deleted file]
src/WOKsite/wok.bat [deleted file]
src/WOKsite/wok.csh [deleted file]
src/WOKsite/wok_tclshrc.tcl
src/WOKsite/wokinit.bat [deleted file]
src/WOKsite/wokinit.csh [deleted file]

index bf3c0c6e5147fb31b5e3e6af2e14f8e0d709e7af..fe2b60a9b504788d86c904fe2c9576e991a4c086 100644 (file)
@@ -112,8 +112,6 @@ xcopy "src\WOKStepsDef\WOKStepsOBJY.edl" "%installPath%\lib\"
 xcopy "src\WOKStepsDef\WOKStepsOrbix.edl" "%installPath%\lib\"
 xcopy "src\WOKStepsDef\WOKStepsStep.edl" "%installPath%\lib\"
 
-xcopy "src\WOKsite\wok.csh" "%installPath%\site\"
-xcopy "src\WOKsite\wokinit.csh" "%installPath%\site\"
 xcopy "src\WOKsite\DEFAULT.edl" "%installPath%\site\"
 xcopy "src\WOKsite\WOKSESSION.edl" "%installPath%\site\"
 xcopy "src\WOKsite\CreateFactory.tcl" "%installPath%\site\"
@@ -122,13 +120,11 @@ xcopy "src\WOKsite\tclshrc.tcl" "%installPath%\site\"
 xcopy "src\WOKsite\wok_deps.tcl" "%installPath%\site\"
 xcopy "src\WOKsite\wok_depsgui.tcl" "%installPath%\site\"
 xcopy "src\WOKsite\wok_tclshrc.tcl" "%installPath%\site\"
-xcopy "src\WOKsite\wok.bat" "%installPath%\site\"
 xcopy "src\WOKsite\wok_confgui.bat" "%installPath%\site\"
 xcopy "src\WOKsite\wok_emacs.bat" "%installPath%\site\"
 xcopy "src\WOKsite\wok_env.bat" "%installPath%\site\"
 xcopy "src\WOKsite\wok_init.bat" "%installPath%\site\"
 xcopy "src\WOKsite\wok_tclsh.bat" "%installPath%\site\"
-xcopy "src\WOKsite\wokinit.bat" "%installPath%\site\"
 
 xcopy "src\CPPClient\CPPClient_General.edl" "%installPath%\lib\"
 xcopy "src\CPPClient\CPPClient_Template.edl" "%installPath%\lib\"
index a5d8250b64a71d29be0ff158be08290ca0af5865..b2dadb20249b55d5ae698622357676197aa5e7cc 100644 (file)
@@ -108,8 +108,6 @@ cp -f src/WOKStepsDef/WOKStepsOBJY.edl $installRelatePath/lib/
 cp -f src/WOKStepsDef/WOKStepsOrbix.edl $installRelatePath/lib/
 cp -f src/WOKStepsDef/WOKStepsStep.edl $installRelatePath/lib/
 
-cp -f src/WOKsite/wok.csh $installRelatePath/site/
-cp -f src/WOKsite/wokinit.csh $installRelatePath/site/
 cp -f src/WOKsite/DEFAULT.edl $installRelatePath/site/
 cp -f src/WOKsite/WOKSESSION.edl $installRelatePath/site/
 cp -f src/WOKsite/CreateFactory.tcl $installRelatePath/site/
@@ -123,7 +121,6 @@ cp -f src/WOKsite/wok_emacs.sh $installRelatePath/site/
 cp -f src/WOKsite/wok_env.sh $installRelatePath/site/
 cp -f src/WOKsite/wok_init.sh $installRelatePath/site/
 cp -f src/WOKsite/wok_tclsh.sh $installRelatePath/site/
-cp -f src/WOKsite/tclshrc_Wok $installRelatePath/site/
 
 cp -f src/CPPClient/CPPClient_General.edl $installRelatePath/lib/
 cp -f src/CPPClient/CPPClient_Template.edl $installRelatePath/lib/
diff --git a/src/WOKsite/tclshrc_Wok b/src/WOKsite/tclshrc_Wok
deleted file mode 100755 (executable)
index 9984839..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-;#
-;# This is a template file for a Tcl/Tk user startup file.
-;#
-;# To use it you must :
-;#
-;# On Unix/Linux system, place or invoke it in a file named .wishrc on your
-;# home directory. Wish, the Tcl/Tk windowing shell will automatically invoke
-;# this file.
-;#
-;# On Windows system, place this file in the directory pointed to by the variable HOME.
-;# Name it tclshrc.tcl or wishrc.tcl depending on the shell you want to use.
-;# You can then click on the Tclsh or Wish icon to start Wok.
-;#
-;# This file assumes that :
-;#
-;# On Linux platforms the variable LD_LIBRARY_PATH is setted to the name
-;# of the directory where Wok shareable resides. For example if you have 
-;# downloaded Wok on /home/me/wok-C40 of a Linux system, you must set 
-;# LD_LIBRARY_PATH to /home/me/wok-C40/lib/lin because wok shareable resides
-;# in this directory. See also the INSTALL file.
-;#
-;# In the same way:
-;#
-;# On SunOS platforms you set LD_LIBRARY_PATH to /home/me/wok-C40/lib/sun.
-;# On Windows system you set the variable PATH to  C:\home\me\wok-C40\lib\lin.
-;#
-;# The following operation are done :
-;#
-;# 1. Traversing the LD_LIBRARY_PATH or PATH variable we find where you have installed
-;#    Wok.
-;# 2. We can :
-;#       a) Compute the location of EDL files Wok needs for working.
-;#       b) Modify the Tcl variable auto_path in order to add our packages: Wok and Ms
-;#       c) In the case of a first installation, setup the directory wok_entities where
-;#          Wok will manage to create its entities. 
-;# 
-;# IMPORTANT RESTRICTIONS:
-;# 
-;# The purpose of this file is to provide a simple and uniform way of using Wok on Unix/Linux
-;# and on Windows. Be aware that if you use other Tcl tools, this can be conflicting.
-;# In this case you can make up a Tcl proc from this file and invoke it at the moment you 
-;# choose.
-;#
-global env tcl_platform
-
-if { "$tcl_platform(platform)" == "unix" } {
-    if { "$tcl_platform(os)" == "HP-UX" } {
-       set ldpathvar SHLIB_PATH
-    } elseif { "$tcl_platform(os)" == "Darwin" } {
-       set ldpathvar DYLD_LIBRARY_PATH
-    } else {
-       set ldpathvar LD_LIBRARY_PATH
-    }
-    if { ![info exists env($ldpathvar)] } {
-        puts stderr "You must set $ldpathvar to point where you have installed Wok"
-        exit
-    }
-}
-
-if { "$tcl_platform(platform)" == "windows" && ![info exists env(Path)] } {
-    puts stderr "You must set PATH to point where you have installed Wok"
-    exit
-}
-if [info exists wm] {
-    wm withdraw .
-}
-if { "$tcl_platform(platform)" == "unix" } {
-    set sprtor ":"
-    set fmtshr "lib%s.so"
-    set wrk [split $env($ldpathvar) $sprtor]
-    if { $tcl_platform(os) == "HP-UX"  } { set fmtshr "lib%s.sl" }
-    if { $tcl_platform(os) == "Darwin" } { set fmtshr "lib%s.dylib" }
-    set msgnotfound "Please check your variable $ldpathvar"
-} 
-if { "$tcl_platform(platform)" == "windows" } {
-    set sprtor ";"
-    set fmtshr "%s.dll"
-    set wrk [split $env(Path) $sprtor]
-    set msgnotfound "Please check your variable PATH"
-}
-;#
-;# Find out in wrk where wok resides. That is : where the file libTKWOK resides. 
-;# 
-set wokso [format $fmtshr TKWOK]
-foreach d $wrk {
-    if { [file exists [file join $d $wokso]] && ![info exists wokfound] } {
-       set wokfound $d
-    }
-}
-if ![info exists wokfound] {
-    puts stderr "Wok (actually $wokso) was not found in the directory(ies) $d"
-    puts stderr "$msgnotfound or check that the above directory are readable."
-    return
-}
-;#
-;# Wok's here we can set up our niche.
-;#
-set wok_library [file dirname $wokfound]
-set wok_ptfm    [file tail    $wokfound]
-;#
-;#
-lappend auto_path $wok_library 
-package require Wok
-package require Ms
-package require Tclx
-;#
-;# Where tcl and edl file of wok reside.
-;#
-set env(WOK_LIBRARY) $wok_library
-set env(WOK_LIBPATH) "${wok_library}${sprtor}[file join $wok_library $wok_ptfm]"
-set env(WOKSTATION)  $wok_ptfm
-set env(WOKHOME)     [file dirname $wok_library]
-set woksite          [file join $env(WOKHOME) site]
-;#
-;# Where the files ATLIST , DEFAULT.edl and SESSION.edl reside
-;#
-if {![info exists env(WOK_ROOTADMDIR)] } { 
-    set env(WOK_ROOTADMDIR) [file normalize $env(WOKHOME)/wok_entities]
-    if ![file exists $env(WOK_ROOTADMDIR)] {
-       if [file writable $env(WOKHOME)] {
-           puts stderr "Creating directory $env(WOK_ROOTADMDIR) for wok entities..."
-           if [catch { wokUtils:FILES:mkdir $env(WOK_ROOTADMDIR) } status] {
-               puts stderr "Error : $status"
-               return
-           }
-           if ![file exists $env(WOK_ROOTADMDIR)] {
-               return
-           }
-       } else {
-           puts stderr "The directory $env(WOK_ROOTADMDIR) cannot be created because $env(WOKHOME) is not writable."
-           puts stderr "Please give write access to this directory."
-           return
-       }
-    } else {
-       #puts stderr "Using $env(WOKHOME)/wok_entities for working entities."
-    }
-} else {
-    if ![file exists $env(WOK_ROOTADMDIR)] {
-       puts stderr "The directory $env(WOK_ROOTADMDIR) can not be found"
-       return
-    }
-    #puts stderr "Using variable WOK_ROOTADMDIR = $env(WOK_ROOTADMDIR) for working entities."    
-}
-
-;#
-;# Check if  Wok stuff is correct. If not set it up silently.
-;#
-if ![file exists  [set woksession [file join $env(WOK_ROOTADMDIR) WOKSESSION.edl]]] {
-    set str1 [wokUtils:FILES:FileToString [file join $woksite WOKSESSION.edl]]
-    regsub -all -- {TOSUBSTITUTE} "$str1" "[file normalize $env(WOK_ROOTADMDIR)]" result1
-    wokUtils:FILES:StringToFile $result1 $woksession
-    if [file exists $woksession] {
-       puts stderr "File $woksession has been created. "
-    }
-}
-;#
-;#
-;#
-if ![file exists [set default [file join $env(WOK_ROOTADMDIR) DEFAULT.edl]]] {
-    set str2 [wokUtils:FILES:FileToString [file join $woksite DEFAULT.edl]]
-    regsub -all -- {/dp_xx} "$str2" "[file normalize $env(WOK_ROOTADMDIR)]" result2
-    wokUtils:FILES:StringToFile $result2 $default
-    if [file exists $default] {
-       puts stderr "File $default has been created. "
-    }
-}
-;#
-;# Where to read/write the current working entity
-;#
-set env(WOK_SESSIONID)  $env(HOME)/.wok
-;#
-;# Every thing seems OK. Display a nice prompt:
-;#
-set tcl_prompt1 {if {[info commands wokcd] != ""}  then \
-       {puts -nonewline stdout "[wokcd]> "} else \
-       {puts -nonewline stdout "tclsh> "}}
-cd $env(WOK_ROOTADMDIR)
-wokclose -a
diff --git a/src/WOKsite/wok.bat b/src/WOKsite/wok.bat
deleted file mode 100755 (executable)
index 8909211..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-set TCLHOME=%CASROOT%/../3rdparty/win32/tcltk
-set TCLBIN=%TCLHOME%/bin
-set WOKHOME=%CASROOT%/../wok
-set PATH=%TCLBIN%;%WOKHOME%/lib/wnt;%PATH%
-set TCL_RCFILE=%HOME%/tclshrc.tcl
-set WOK_ROOTADMDIR=%WOKHOME%/wok_entities
-set INIT=%WOKHOME%/lib/wnt
-set HOME=%WOKHOME%/site
-cd /d %WOK_ROOTADMDIR%
-%TCLBIN%/tclsh.exe
diff --git a/src/WOKsite/wok.csh b/src/WOKsite/wok.csh
deleted file mode 100755 (executable)
index a357807..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/bin/csh -f
-#
-# Use this file ONLY if you need to launch different version of Wok
-# or if you want to adress different Wok entities.
-# If you use this file , the 2 first arguments are mandatory.
-# 
-#
-set noglob ; set narg = $#argv 
-if ( $narg > 3) then
-  echo "Usage : wok.csh wok_home wok_entities [tclhome] "
-  echo "        wok_home(optional)     is the path of directory for wok shareable (Ex: <root>/lib/sun) "
-  echo "        wok_entities(optional) is the path of an ATLIST file."
-  echo "        tclhome(optional)      is the home directory of a Tcl distribution."
-  echo "   "
-  exit
-endif
-
-if ( $narg == 0 && ! ($?CASROOT)) then
-echo -n "Please define CASROOT to the folder containing OpenCascade '"'src'"', '"'drv'"' and '"'inc'"' folders. :"
-set res = $<
-setenv CASROOT ${res}
-endif
-
-if ( $narg == 0) then
-  setenv WOKHOME $CASROOT/../wok
-  setenv WOK_ROOTADMDIR $WOKHOME/wok_entities
-endif
-
-if ( $narg == 1) then
-  setenv WOKHOME $argv[1]
-  setenv WOK_ROOTADMDIR $WOKHOME/wok_entities
-endif
-
-if ( $narg == 2 ) then
-  setenv WOKHOME $argv[1]
-  setenv WOK_ROOTADMDIR $argv[2]
-endif
-
-
-if ( $narg == 3 ) then
-   setenv WOKHOME $argv[1]
-   setenv WOK_ROOTADMDIR $argv[2]
-   setenv TCLHOME $argv[3]
-endif
-
-
-set TCLLIB=${TCLHOME}/lib
-set TCLBIN=${TCLHOME}/bin
-if ( $?TCLLIBPATH ) then
-    unsetenv TCLLIBPATH
-endif
-if ( ! ($?LD_LIBRARY_PATH) ) then
-    setenv LD_LIBRARY_PATH ""
-endif
-
-switch ( `uname` )
-    case SunOS:
-       setenv WOKSTATION "sun"
-       breaksw
-    case Linux:
-       setenv WOKSTATION "lin"
-       breaksw
-    case IRIX:
-       setenv WOKSTATION "sil"
-       breaksw
-    case IRIX64:
-       setenv WOKSTATION "sil"
-       setenv TCLLIBPATH "${TCLLIB}/itcl ${TCLLIB} ${WOKHOME}/lib ${WOKHOME}/lib/${WOKSTATION}"
-       setenv TRAP_FPE "UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT"
-       breaksw
-    case HP-UX:
-        setenv WOKSTATION "hp"
-       setenv SHLIB_PATH "${TCLLIB}:${WOKHOME}/lib/${WOKSTATION}:${SHLIB_PATH}:"
-        breaksw
-    case Darwin:
-        setenv WOKSTATION "mac"
-       setenv DYLD_LIBRARY_PATH "${TCLLIB}:${WOKHOME}/lib/${WOKSTATION}:${DYLD_LIBRARY_PATH}:"
-        breaksw
-    case FreeBSD:
-        setenv WOKSTATION "bsd"
-        breaksw
-    default:
-       echo "Error : unknown platform"
-       breaksw
-endsw
-
-setenv LD_LIBRARY_PATH "${TCLLIB}:${WOKHOME}/lib/${WOKSTATION}:${LD_LIBRARY_PATH}:"
-${TCLBIN}/tclsh
index 2229c1114e7b187602e68024f919cadba714afe0..087580e04830aa4d01dda6f85de05d1425bd99de 100644 (file)
@@ -321,7 +321,7 @@ proc wgenproj { args } {
   set anTarget ""
   switch -exact -- "$::env(WOKSTATION)" {
     "wnt"   {set anTarget "$::VCVER"}
-    "lin"   {set anTarget "cbp"}
+    "lin"   {set anTarget "cmake"}
     "mac"   {set anTarget "cmake"}
   }
 
diff --git a/src/WOKsite/wokinit.bat b/src/WOKsite/wokinit.bat
deleted file mode 100755 (executable)
index bce2097..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-set TCLHOME=%CASROOT%/../3rdparty/win32/tcltk
-set TCLBIN=%TCLHOME%/bin
-set WOKHOME=%CASROOT%/../wok
-set PATH=%TCLBIN%;%WOKHOME%/lib/wnt;%PATH%
-set TCL_RCFILE=%WOKHOME%/site/tclshrc.tcl
-set WOK_ROOTADMDIR=%WOKHOME%/wok_entities
-set HOME=%WOKHOME%/site
-cd %WOK_ROOTADMDIR%
-%TCLBIN%/tclsh.exe < %HOME%/CreateFactory.tcl
diff --git a/src/WOKsite/wokinit.csh b/src/WOKsite/wokinit.csh
deleted file mode 100755 (executable)
index 15fe872..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/csh -f
-#
-
-set OS_NAME=`uname`
-set OS_PLATFORM=""
-if ( $OS_NAME == "SunOS" ) then
-   set OS_PLATFORM="sun"
-else if ( $OS_NAME == "Linux" ) then
-   set OS_PLATFORM="lin"
-else if ( $OS_NAME == "HP-UX" ) then
-   set OS_PLATFORM="hp"
-else if ( $OS_NAME == "Darwin" ) then
-   set OS_PLATFORM="mac"
-else if ( $OS_NAME == "FreeBSD" ) then
-   set OS_PLATFORM="bsd"
-endif
-
-setenv WOKHOME ${CASROOT}/../wok
-setenv HOME ${WOKHOME}/site
-setenv WOK_LIBPATH ${WOKHOME}/lib/${OS_PLATFORM}
-
-setenv WOK_ROOTADMDIR ${WOKHOME}/wok_entities
-setenv WOK_SESSIONID ${HOME}
-
-setenv TCLHOME ${CASROOT}/../3rdparty/${OS_NAME}/tcltk
-setenv TCLLIBPATH "${TCLHOME}/lib:${WOK_LIBPATH}"
-
-set TCLLIB=${TCLHOME}/lib
-set TCLBIN=${TCLHOME}/bin
-
-setenv LD_LIBRARY_PATH "/usr/lib:/usr/X11R6/lib:/lib:${TCLLIB}:${WOKHOME}/lib/:${WOKHOME}/lib/${OS_PLATFORM}"
-setenv path "/usr/bin /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin /usr/X11R6/bin /etc"
-setenv PATH "/usr/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/etc"
-
-echo ${LD_LIBRARY_PATH}
-env | grep -i wok
-env | grep -i tcl
-
-cd ${WOK_ROOTADMDIR}
-
-${TCLBIN}/tclsh < ${WOKHOME}/site/CreateFactory.tcl
-