Talk:ROM images
Jump to navigation
Jump to search
The wiki text for the table entries is a bit complex and repetitive. This bit of bash code generates an entry that can be pasted into the wiki. The "refdes" and "instrument" fields should be filled in, or replaced with question marks if they are unknown.
$ cat gen_romtable_entry
#!/bin/bash partnum=${1}.bin echo "| [[Media:${partnum}|${partnum}]] ([[:File:${partnum}#filehistory|?]]) || $(crc32 ${partnum}) || [[InstrumentPage|Instrument Name]] || refdes || [[PartPage|Part Name]]" echo "|-"
Usage example:
$ ./gen_romtable_entry 160-9983-01
Example output:
| [[Media:160-9983-01.bin|160-9983-01.bin]] ([[:File:160-9983-01.bin#filehistory|?]]) || b1cbac4d || [[instrument]] || refdes || [[PartPage|Part Name]] |-