summaryrefslogtreecommitdiff
path: root/projects/generate
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2018-04-29 21:30:45 +0200
committerGitHub <noreply@github.com>2018-04-29 21:30:45 +0200
commiteb2603a5e79db761f69950b1b9e1f0c5a18451ca (patch)
treed50147fdc209b791de9b0503ea205c587dbe94e6 /projects/generate
parenta806424ec1281dc75da186797414f8e0488454fa (diff)
downloadopenttd-eb2603a5e79db761f69950b1b9e1f0c5a18451ca.tar.xz
Fix: make generate[.vbs] produce the same result on Linux/Windows (#6764)
Diffstat (limited to 'projects/generate')
-rwxr-xr-xprojects/generate6
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