File: abacus

package info (click to toggle)
abacus 0.9.13-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,308 kB
  • ctags: 5,120
  • sloc: ansic: 27,540; cpp: 11,426; tcl: 7,564; makefile: 386; yacc: 327; lex: 265; sh: 221
file content (54 lines) | stat: -rwxr-xr-x 1,103 bytes parent folder | download | duplicates (2)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
# The next line restarts using nxlc \
exec $ABACUS_HOME/tcl_interf/nxlc -f $0 ${1+"$@"}
# $Id: abacus,v 1.2 1998/08/31 16:53:38 cthulhu Exp $

global env

proc getVersion {} {
    set f [open [xxl_library]/version]
    gets  $f s
    close $f
    return $s
}

if [info exists env(ABACUS_HOME)] {
    set home $env(ABACUS_HOME)
} else {
    set home "."
}

wm withdraw .
source $home/runlib/globals.tcl
source [xxl_home]/display/display.tcl
set xxlVersion [getVersion]
puts "Abacus Version $xxlVersion"
createPixmaps

toplevel .title
label .title.message -image xxl_im -relief raised -borderwidth 8
pack .title.message
dpos .title 300 200
wm overrideredirect .title true
update
after 1000 {
  set sheetCnt 1
  if {$argc == 1} {
    set s [lindex $argv 0]
    newSpreadsheet [getRadix $s]
    loadSheet $s
    after 600 {catch {destroy .title}}
  } else {
    newSpreadsheet example
    after 600 {catch {destroy .title}}
  }
}

# 
# $Log: abacus,v $
# Revision 1.2  1998/08/31 16:53:38  cthulhu
# Fixed splash screen timeout.
#
# Revision 1.1  1998/08/17 19:43:08  cthulhu
# Initial revision
#