Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
jenkins: modern python mandate UTF8 locales
[simgrid.git] / tools / jenkins / build.sh
index aa72529..3ceb6d8 100755 (executable)
@@ -7,8 +7,9 @@
 
 set -e
 
-# ensure that the locales are set, so that perl keeps its nerves
-export LC_ALL=C
+# Ensure that the locales are set, so that Perl keeps its nerves.
+# Not forgeting UTF to not drive Python crazy.
+export LC_ALL=C.UTF-8
 
 echo "XXXX Cleanup previous attempts. Remaining content of /tmp:"
 rm -rf /tmp/simgrid-java*
@@ -88,6 +89,9 @@ fi
 mkdir $WORKSPACE/build
 cd $WORKSPACE/build
 
+# This is for Windows:
+PATH="$WORKSPACE/build/lib:$PATH"
+
 if test "$(uname -o)" != "Msys"; then
   echo "XX"
   echo "XX Build the archive out of the tree"
@@ -100,9 +104,12 @@ if test "$(uname -o)" != "Msys"; then
   echo "XX"
   echo "XX Open the resulting archive"
   echo "XX"
-  tar xzf `cat VERSION`.tar.gz
+  gunzip `cat VERSION`.tar.gz
+  tar xf `cat VERSION`.tar
   cd `cat VERSION`
-  SRCFOLDER="."
+  mkdir build
+  cd build
+  SRCFOLDER=".."
 else
 #for windows we don't make dist, but we still want to build out of source
   SRCFOLDER=$WORKSPACE
@@ -128,7 +135,7 @@ make -j$NUMBER_OF_PROCESSORS VERBOSE=1
 
 if test "$(uname -o)" != "Msys"; then
   cd $WORKSPACE/build
-  cd `cat VERSION`
+  cd `cat VERSION`/build
 fi
 
 TRES=0