~q3cpma/mangadex-tools

a76b1d2fc2717da81c60497fd31cdd417e11f675 — q3cpma a month ago 959d696
Centralize source once mechanism
4 files changed, 6 insertions(+), 9 deletions(-)

M mdex_dl.tcl
M mdex_monitor.tcl
M mdex_util.tcl
M util.tcl
M mdex_dl.tcl => mdex_dl.tcl +1 -3
@@ 2,9 2,7 @@
# TODO: group filtering ?
set scriptdir [file dirname [file dirname \
								 [file normalize [file join [info script] dummy]]]]
if {![namespace exists util]} {
	source [file join $scriptdir util.tcl]
}
source [file join $scriptdir util.tcl]
source [file join $scriptdir mdex_util.tcl]
util::exec_require curl


M mdex_monitor.tcl => mdex_monitor.tcl +1 -3
@@ 2,9 2,7 @@
# TODO: check when chapter is last (how?) and put it in Atom
set scriptdir [file dirname [file dirname \
								 [file normalize [file join [info script] dummy]]]]
if {![namespace exists util]} {
	source [file join $scriptdir util.tcl]
}
source [file join $scriptdir util.tcl]
source [file join $scriptdir mdex_util.tcl]
source [file join $scriptdir atom.tcl]
util::exec_require curl

M mdex_util.tcl => mdex_util.tcl +1 -3
@@ 1,9 1,7 @@
package require json
set scriptdir [file dirname [file dirname \
							 [file normalize [file join [info script] dummy]]]]
if {![namespace exists util]} {
	source [file join $scriptdir util.tcl]
}
source [file join $scriptdir util.tcl]

set URL_BASE       https://mangadex.org
set URL_BASE_RE    https://mangadex\.org

M util.tcl => util.tcl +3 -0
@@ 1,3 1,6 @@
if {[namespace exists util]} {
    return
}
package require Tcl 8.6
namespace path {::tcl::mathop ::tcl::mathfunc}