From 378fc76ca0ec17d2539ff1b78d15bcd7d666b47f Mon Sep 17 00:00:00 2001 From: DrSlony Date: Sat, 4 Jan 2014 18:16:32 +0100 Subject: [PATCH] Updated generateTranslationDiffs to put comments at the beginning of default --- tools/generateTranslationDiffs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/generateTranslationDiffs b/tools/generateTranslationDiffs index 0b2c8b200..5e6362476 100755 --- a/tools/generateTranslationDiffs +++ b/tools/generateTranslationDiffs @@ -32,8 +32,9 @@ else done fi -# First thing, we want to strip default of any "!" and duplicates. -grep -v '^!' default | sort -Vu > "$tmp" +# First thing, fix default, so move comments to front, then strip the rest of any "!" and duplicates. +grep "^#.*" default > "$tmp" +grep -Ev '^[!|#]' default | sort -Vu >> "$tmp" mv "$tmp" "default" for file in "${langFiles[@]}"; do