rufus/res/localization/embedded.sed

17 lines
429 B
Sed

# 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
1,300 {/g IDD_DIALOG/,/g IDD_MESSAGES/{/g IDD_MESSAGES/!d}}
# output file *MUST* be CR/LF
s/$/\r/