mirror of
https://github.com/taviso/loadlibrary
synced 2026-06-08 17:42:38 +00:00
24 lines
523 B
Bash
24 lines
523 B
Bash
#!/bin/sh
|
|
#
|
|
cat << EOF
|
|
#include <idc.idc>
|
|
#define PAGE_SIZE 0x1000
|
|
static main() {
|
|
EOF
|
|
|
|
# colour functions with coverage differently
|
|
cut -d: -f1 ${1} | sed 's/^\(.*\)$/\tSetColor(MinEA()-PAGE_SIZE+\1, 2, 0xECFCB0);/g'
|
|
|
|
# colour block start slightly bolder
|
|
cut -d: -f1 ${1} | sed 's/^\(.*\)$/\tSetColor(MinEA()-PAGE_SIZE+\1, 1, 0xD3FE32);/g'
|
|
|
|
# insert a comment which file hit this block
|
|
sed -e 's/^\(.*\):\(.*\)$/\tMakeComm(MinEA()-PAGE_SIZE+\1, "Sample: \2");/g' ${1}
|
|
|
|
cat << EOF
|
|
Refresh();
|
|
RefreshLists();
|
|
}
|
|
EOF
|
|
|