community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1866375 - /comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh
Date Wed, 04 Sep 2019 11:22:14 GMT
Author: sebb
Date: Wed Sep  4 11:22:13 2019
New Revision: 1866375

URL: http://svn.apache.org/viewvc?rev=1866375&view=rev
Log:
ls/sort order is locale-dependent so fix on C

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh?rev=1866375&r1=1866374&r2=1866375&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh Wed Sep  4 11:22:13 2019
@@ -17,7 +17,10 @@ echo '/*
 */
 // THIS IS AN AUTOMATICALLY COMBINED FILE. PLEASE EDIT source/*.js!!
 ' > ../wizard-beta.js
-for f in `ls *.js`; do
+# Warning: ls/sort order depends on the locale; this can affect the order of '.' and '_'
+# i.e. statistics.js and statistics_generator.js
+# so force the use of 'C'
+for f in `LC_ALL=C ls *.js`; do
     printf "\n\n/******************************************\n Fetched from source/${f}\n******************************************/\n\n"
>> ../wizard-beta.js
     perl -0pe 's/\/\*.*?\*\/[\r\n]*//sm' ${f} >> ../wizard-beta.js
 done



Mime
View raw message