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
|
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
#
# Usage: diff_gui_help module
# ( module = pw, ph, pp, neb, projwfc, bands, dos, or atomic )
#
# Requirements: execute the check_gui first !!!
#
# Purpose: compares the current PWgui help file with the one in $topdir/GUI/PWgui/modules/$module/
#
set basedir [file normalize [file dirname [info script]]]
set topdir [file normalize [file join $basedir ..]]
set helpdocdir [file join $basedir helpdoc.d]
source [file join $helpdocdir modules.tcl]; # load which modules do we support
if { $argc != 1 } {
helpdoc::prog_module_usage
}
set module [lindex $argv 0]
# PWgui's modules dir
set pwguidir [file join $topdir GUI PWgui]
set moduledir [file join $pwguidir modules]
if { ! [file exists $module-help.tcl] } {
puts stderr "
ERROR: run the \"check_gui $module\" first ...
"
exit 1
}
catch {exec tkdiff $module-help.tcl [file join $moduledir $module $module-help.tcl]}
|