diff options
author | Patric Stout <truebrain@openttd.org> | 2018-04-29 21:30:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-29 21:30:45 +0200 |
commit | eb2603a5e79db761f69950b1b9e1f0c5a18451ca (patch) | |
tree | d50147fdc209b791de9b0503ea205c587dbe94e6 /projects/generate | |
parent | a806424ec1281dc75da186797414f8e0488454fa (diff) | |
download | openttd-eb2603a5e79db761f69950b1b9e1f0c5a18451ca.tar.xz |
Fix: make generate[.vbs] produce the same result on Linux/Windows (#6764)
Diffstat (limited to 'projects/generate')
-rwxr-xr-x | projects/generate | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/projects/generate b/projects/generate index 2111798f0..28fd25552 100755 --- a/projects/generate +++ b/projects/generate @@ -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 |