Professional Documents
Culture Documents
mql 7/31/2007
append folder /
return [string tolower $folder]
}
1
Copy of RelB0toXML83SOTM.mql 7/31/2007
2
Copy of RelB0toXML83SOTM.mql 7/31/2007
3
Copy of RelB0toXML83SOTM.mql 7/31/2007
eval {
set sTmpTemp "$env(TEMP)"
regsub -all {\\} $sTmpTemp "/" sTemp
puts "$sType\t$sName\t$sRev"
if {$sState == "Cancelled"} {
if {[mql temp query bus $sType $sName * where ' revision > $
sRev ' dump] != "" } {
4
Copy of RelB0toXML83SOTM.mql 7/31/2007
set subFixList {}
set subFixList [fixList2 $subList2
$subFixList]
set k 0
lappen
d
sCDFix
List2
"$sTyp
e\t$sN
ame\t$
sRev"
5
Copy of RelB0toXML83SOTM.mql 7/31/2007
puts
"+
Newer
revisi
on
connec
ts to
WT.H
but
does
not
apply
to
*8.3
SOTM*"
}
} else {
#Newer
revision is a
match,
therefore
remove
cancelled from
list
puts "-
Skipping
$sType\t$sName
\t$sRev"
}
}
if {$k == [llength
$subFixList] && $sMatch ==
"FALSE"} {
#Add to List
if {([string match
"*8.3 SOTM*" $
sIARelease] == "0")} {
puts "-
Removing
$sType\t$sName
\t$sRev from
list"
} else {
lappend
sCDFixList2
"$sType\t$sNam
e\t$sRev"
puts "+ Newer
revision does
not connect to
WT.H"
}
}
}
}
}
} else {
# If cancelled and no later revision exists, add to
list
if {([string match *8.3 SOTM* $sIARelease] == "0")} {
puts "- Removing $sType\t$sName\t$sRev from
list"
} else {
6
Copy of RelB0toXML83SOTM.mql 7/31/2007
set sCtcFixList4 {}
set sCDFixList3 [split [mql temp query bus $sType $sName $sRev\
select Description\
current\
{attribute[Document Date]}\
{attribute[Related I/A Series Release]} \
{attribute[B0 Category]}\
{format[Adobe Reader].file.name}\
{format[Adobe Reader].file.size}\
{format[MS Excel].hasfile}\
{format[MS Excel].file.name}\
{format[MS Excel].file.size}\
dump "\t"] \n]
set sCtcList {}
set sCtcList [fixList $sCtcFixList4 $sCtcList]
7
Copy of RelB0toXML83SOTM.mql 7/31/2007
if {$sHasExcel == "TRUE"} {
set tabCount [regsub -all \t $sCtcDoc () ignore]
puts "$sName\t$tabCount"
set nExcel [expr (($tabCount - 10)/2)]
puts "Excel: $nExcel"
set i 0
while {$i < $nExcel} {
set sFileName [lindex [split $sCtcDoc "\t"] [expr ($
i + 11)]]
set sFileSize [lindex [split $sCtcDoc "\t"] [expr ($
i + $nExcel + 11)]]
set sDescription "[getDescription $sFileName]"
writeBookInfo $sFileId $sName $sRev $sDescription $
sStateDate $sCategory $sState $sFileName $sFileSize
set i [expr ($i+1)]
}
}
} elseif {($sName == "B0193AX")} {
set tabCount [regsub -all \t $sCtcDoc () ignore]
puts "$sName\t$tabCount"
puts "$sCtcDoc"
set nPDF [expr (($tabCount - 8)/2)]
set i 0
while {$i < $nPDF} {
set sFileName [lindex [split $sCtcDoc "\t"] [expr ($i + 8)]]
set sFileSize [lindex [split $sCtcDoc "\t"] [expr ($i + $
nPDF + 8)]]
set sDescription1 "$sDescription (Vol [expr ($i+1)])"
if {$i == 0} {
set sDescription1 "$sDescription1 (ACCUM - DTIME)"
} elseif {$i == 1} {
set sDescription1 "$sDescription1 (ECB - MOVLV)"
} elseif {$i == 2} {
set sDescription1 "$sDescription1 (MSG - VLV)"
}
8
Copy of RelB0toXML83SOTM.mql 7/31/2007