2013-11-01 19:17:46 +00:00
|
|
|
# This sed script removes everything we don't need from rufus.loc, for embedding.
|
|
|
|
|
|
|
|
# remove comments (aggressively!)
|
|
|
|
s/#.*$//
|
|
|
|
|
|
|
|
# remove empty lines
|
|
|
|
/^$/d
|
|
|
|
|
|
|
|
# remove trailing whitespaces
|
|
|
|
s/[ \t]*$//
|
|
|
|
|
|
|
|
# remove the UI controls for "en-US" as they are just here for translators
|
|
|
|
# 1,300 means we only do this for the the first 300 lines
|
2013-12-18 01:20:44 +00:00
|
|
|
1,300 {/^g IDD_DIALOG/,/^t MSG_001/{/^t MSG_001/!d}}
|
2013-11-23 22:05:34 +00:00
|
|
|
|
2013-12-02 18:24:54 +00:00
|
|
|
# also replace the "translated by" line for English
|
|
|
|
1,500{s/^t MSG_176.*$/t MSG_176 \"mailto:pete@akeo.ie\"/}
|
2013-11-01 19:17:46 +00:00
|
|
|
|
|
|
|
# output file *MUST* be CR/LF
|
|
|
|
s/$/\r/
|