Fix: make generate[.vbs] produce the same result on Linux/Windows (#6764)

This commit is contained in:
Patric Stout
2018-04-29 21:30:45 +02:00
committed by GitHub
parent a806424ec1
commit eb2603a5e7
9 changed files with 58 additions and 56 deletions

View File

@@ -190,9 +190,11 @@ load_main_data() {
load_lang_data() {
RES=""
for i in `ls $1`
# Windows Folder sort and Linux Folder sort are slightly different.
# By removing the extension and sorting it on Linux, they are the same.
for i in `ls $1 | sed s~.txt$~~g | sort`
do
i=`basename $i | sed s~.txt$~~g`
i=`basename $i`
if [ "$i" == "english" ]
then
continue