diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 15:54:53 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 15:54:53 +0000 |
commit | d7d99c8433b3bd35c8bad352ebd1fc49cff45264 (patch) | |
tree | 83c0e24403636a9a639ebf5c2fcd4e3b7efecef7 /fillblnk |
R6.6 is the Xorg base-lineXORG-MAIN
Diffstat (limited to 'fillblnk')
-rw-r--r-- | fillblnk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fillblnk b/fillblnk new file mode 100644 index 0000000..dbd2ec1 --- /dev/null +++ b/fillblnk @@ -0,0 +1,15 @@ +#!/bin/sh +echo '#####EOF#####' | cat $2 - $1 | +awk -F: '\ +$1 == "#####EOF#####" { filling = 1; currentItem = 1; lastItem = NR; next; } +filling != "1" { itemOrder[" " $1] = NR; name[NR] = $1; } +filling == "1" { rate[itemOrder[$2]] = $1; } +END { + for (i = 1; i < lastItem; i++) { + if (rate[i] != "") { + printf ("%s: %s\n", rate[i], name[i]); + } else { + printf (" 0 trep @ 0.0 msec (0.0/sec): %s\n", name[i]); + } + } + }' |