22320536ee
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1420 2a923420-c742-0410-a762-8d5b09965624
32 lines
607 B
Plaintext
Executable File
32 lines
607 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
package require cgi
|
|
source /mod/webif/lib/setup
|
|
require ts.class pretty_size
|
|
|
|
httpheader
|
|
|
|
cgi_input 1
|
|
|
|
set joinstart [clock milliseconds]
|
|
|
|
set cmd {/mod/bin/nicesplice}
|
|
set dst [file rootname [cgi_get dest "joined"]]
|
|
|
|
foreach file [split [cgi_get files] ","] {
|
|
set file [cgi_unquote_input $file]
|
|
lappend cmd "-in" [file rootname $file]
|
|
set dir [file dirname $file]
|
|
}
|
|
lappend cmd "-out" "$dir/$dst"
|
|
|
|
puts "($cmd)"
|
|
puts [exec {*}$cmd]
|
|
|
|
set ts [ts fetch "$dir/$dst.ts"]
|
|
$ts settitle $dst
|
|
|
|
set jointime [expr [expr [clock milliseconds] - $joinstart] / 1000.0]
|
|
puts "Time taken: $jointime"
|
|
|