You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2019/09/04 11:22:14 UTC

svn commit: r1866375 - /comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh

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