ba06f8bb |
1 | #!/usr/bin/tclsh |
2 | |
d1a67b9d |
3 | # ======================================================================= |
4 | # Created on: 2014-03-21 |
5 | # Created by: OMY |
6 | # Copyright (c) 1996-1999 Matra Datavision |
7 | # Copyright (c) 1999-2014 OPEN CASCADE SAS |
8 | # |
9 | # This file is part of Open CASCADE Technology software library. |
10 | # |
11 | # This library is free software; you can redistribute it and/or modify it under |
12 | # the terms of the GNU Lesser General Public License version 2.1 as published |
13 | # by the Free Software Foundation, with special exception defined in the file |
14 | # OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
15 | # distribution for complete text of the license and disclaimer of any warranty. |
16 | # |
17 | # Alternatively, this file may be used under the terms of Open CASCADE |
18 | # commercial license or contractual agreement. |
19 | |
20 | if { [llength $argv] < 1 } { |
21 | puts "Command-line starter for Tcl command defined in same-named file." |
22 | puts "Use it as follows:" |
23 | puts "\> tclsh start.tcl command \[arguments\]" |
24 | return |
25 | } |
ba06f8bb |
26 | |
d1a67b9d |
27 | set cmdname [lindex $argv 0] |
28 | source [file join [file dirname [info script]] $cmdname.tcl] |
29 | |
30 | eval $cmdname [lrange $argv 1 end] |