RemovingVEXFromOTL

From Odwiki

Jump to: navigation, search

Stripping out the VFL section (VEX source code) from an OTL

This is an example script only - and it demonstrates some of the scripting commands to manipulate OTLs. Thanks to User:MarkElendt for this example.


This makes a temporary VEX OTL (for testing purposes)...

#!/bin/csh -f

if (-d contents) then
    echo Found existing contents directory
    exit
endif

cat << ENDCAT > crypted.vfl
sop
crypted()
{
    P += noise(P*3);
}
ENDCAT
 
vcc -c -t 1 -T 1 -l crypted.otl crypted.vfl


... now we strip out the VflCode section from the OTL

#!/bin/csh -f
mkdir contents
hotl -x contents crypted.otl

cd contents/Sop_1crypted
rm VflCode
grep -v VflCode Sections.list > /tmp/sections
cp /tmp/sections Sections.list
rm /tmp/sections
cd ../..

hotl -c contents crypted.otl
rm -rf contents
© 2009 od[force].net | advertise