-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathread_lib.proc
40 lines (37 loc) · 1.85 KB
/
read_lib.proc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! bin/ tclsh
proc read_lib {args} {
array set options {-late <late_lib_path> -early <early_lib_path> -help "" }
foreach {switch value} [array get options] {
# puts " option $switch is $value"
}
while {[llength $args]} {
# puts "llength is [llength $args]"
# puts "lindex 0 0f \"args\" is [lindex $args 0]"
switch -glob -- [lindex $args 0] {
# puts "Entering -switvh"
-late {
# puts "-local cpu"
# puts "old args is $args"
set args [lassign $args -options (-late)]
# puts "new args is \"$args\""
puts "set_late_celllib_fpath $options(-late)"
}
-early{
# puts "-local cpu"
# puts "old args is $args"
set args [lassign $args -options (-early)]
# puts "new args is \"$args\""
puts "set_early_celllib_fpath $options(-early)"
}
-help {
# puts "help"
# puts "old args is $args"
set args [lassign $args -options (-help)]
puts "Usage:read_lib -late <late_lib_path> -early <early_lib_path>"
# puts "-late <provide early lib path>"
# puts "-early <early lib path>"
}
default break
}
}
}