File: helpdoc

package info (click to toggle)
espresso 6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 311,040 kB
  • sloc: f90: 447,429; ansic: 52,566; sh: 40,631; xml: 37,561; tcl: 20,077; lisp: 5,923; makefile: 4,502; python: 4,379; perl: 1,219; cpp: 761; fortran: 618; java: 568; awk: 128
file content (43 lines) | stat: -rwxr-xr-x 792 bytes parent folder | download | duplicates (5)
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
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"

set basedir   [file normalize [file dirname [info script]]]
set sourcedir [file join $basedir helpdoc.d]

source [file join $sourcedir helpdoc.tcl]

# custom XSLTPROC program
#set ::helpdoc::xsltproc /path/to/xsltproc

#
# MAIN
#

set usage "
    Usage: $argv0 \[-version value\] file1.def ?file2.def? ...
"

if { $argc < 1 } {
    puts stderr $usage
    exit 1
}

set options {
    {version.arg {} "Quantum ESPRESSO version number"}
}
   
set argv_orig $argv
array set opt [::cmdline::getoptions argv $options $usage]
	       
if { [llength $::argv] == 0 } {
        puts stderr "
### no deffile specified on the command line:  [concat $::argv0 $::argv_orig]
"
        exit 1
}


# MAKE-IT-ALL

::helpdoc::process $argv