Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (10 sloc) 473 Bytes
#!/bin/sh
# usage: build.sh data/some-file.tcp
# Do normal processing
cat $1 | python process-dump.py > packet_flight/data.pde
# Setup javascript viewer
cp packet_flight/data.pde packet_flight/js/data.js
# Clean out the junk
sed -i 's/NetworkNode \(.*\) =/\1 =/g' packet_flight/data.pde packet_flight/js/data.js
sed -i 's/NetworkNode node;.*$//' packet_flight/data.pde packet_flight/js/data.js
sed -i 's/void/function/g' packet_flight/data.pde packet_flight/js/data.js