Updated generateTranslationDiffs to put comments at the beginning of default

This commit is contained in:
DrSlony 2014-01-04 18:16:32 +01:00
parent 7a8a390d80
commit 378fc76ca0

View File

@ -32,8 +32,9 @@ else
done done
fi fi
# First thing, we want to strip default of any "!" and duplicates. # First thing, fix default, so move comments to front, then strip the rest of any "!" and duplicates.
grep -v '^!' default | sort -Vu > "$tmp" grep "^#.*" default > "$tmp"
grep -Ev '^[!|#]' default | sort -Vu >> "$tmp"
mv "$tmp" "default" mv "$tmp" "default"
for file in "${langFiles[@]}"; do for file in "${langFiles[@]}"; do