Changeset 206877ec621f…
Parent ee44cd292a8c…
by Camillo Bruni <camillobruni@gmail.com>
Changes to 7 files · Browse files at 206877ec621f Showing diff from parent ee44cd292a8c Diff from another changeset...
@@ -5,10 +5,4 @@ - sudo apt-get install gcc cmake lib32c-dev libasound2-dev libssl-dev libfreetype6-dev libgl1-mesa-dev zip bash-completion htop ruby git xz-utils build-essential debhelper devscripts
- sudo apt-get install libc6:i386
script:
- - codegen-scripts/extract-commit-info.sh
- - cd image
- - ./newImage.sh
- - "echo \"PharoVMBuilder buildOnJenkins: '$OS'.\" > ./script.st
- - wget -O- get.pharo.org/vm | bash
- - ./pharo generator.image script.st"
- - cd build/build.sh
\ No newline at end of file+ - build.sh
\ No newline at end of file |
|
@@ -0,0 +1,32 @@ + # ARGUMENT HANDLING =============================================================
+if { [ "$1" = "-h" ] || [ "$1" = "--help" ]; }; then
+ echo "This script builds the VM for the currently running platform.
+"
+ exit 0;
+elif [ $# -gt 0 ]; then
+ echo "--help is the only argument allowed"
+ exit 1;
+fi
+
+# DETECT SYSTEM PROPERTIES ======================================================
+TMP_OS=`uname | tr "[:upper:]" "[:lower:]"`
+if [[ "{$TMP_OS}" = *darwin* ]]; then
+ OS="mac";
+elif [[ "{$TMP_OS}" = *linux* ]]; then
+ OS="linux";
+elif [[ "{$TMP_OS}" = *win* ]]; then
+ OS="win";
+elif [[ "{$TMP_OS}" = *mingw* ]]; then
+ OS="win";
+else
+ echo "Unsupported OS";
+ exit 1;
+fi
+
+# ===============================================================================
+codegen-scripts/extract-commit-info.sh
+cd image
+./newImage.sh
+echo "PharoVMBuilder buildOnJenkins: '$OS'." > ./script.st
+./pharo generator.image script.st
+cd ../build/build.sh
\ No newline at end of file |
|
|
|
@@ -1,16 +0,0 @@ - # set $SQUEAKVM env var to path to VM binary
-# for example:
-# export SQUEAKVM=/home/sig/vm/bin/squeak; sh ./buildImage.sh -headless
-
-rm -rf ../src
-rm -rf ../build
-mkdir -p ../build
-cp ./image.url ../build
-cp ./LoadVMMaker.st ../build
-cd ../build || exit
-
-wget --no-check-certificate -i ./image.url -O ./image.zip
-unzip -jbo ./image.zip
-IMAGE=`ls *.image`
-$SQUEAKVM "$1" $IMAGE ./LoadVMMaker.st
-
|
|
@@ -1,16 +0,0 @@ - # Example script for generating the sources and build config on Windows platform
-# pass the configuration class name as argument
-# The $SQUEAKVM env var should be set to path to VM binary
-# The generator.image should be located in ../build directory.
-#
-# generate.cmd CogMsWindowsConfig
-#
-
-rmdir /S /Q ..\src
-cd ..\build || exit
-del /Q PharoDebug.log
-
-echo %1 generateWithSources. Smalltalk snapshot: false andQuit: true. > ./script.st
-
-%SQUEAKVM% -headless generator.image script.st
-
|
|
@@ -1,18 +0,0 @@ - # script for generating the sources and build config
-# pass the configuration class name as argument
-# The $SQUEAKVM env var should be set to path to VM binary
-# for example:
-#
-# export SQUEAKVM=/home/sig/vm/bin/squeak
-#
-# sh ./generate.sh -headless CogUnixConfig
-#
-
-rm -rf ../src
-cd ../build || exit
-rm PharoDebug.log
-
-echo "$2 generateWithSources. Smalltalk snapshot: false andQuit: true." > ./script.st
-
-$SQUEAKVM "$1" generator.image script.st
-
|
|
@@ -1,1 +0,0 @@ - http://pharo-ic.lille.inria.fr/hudson/job/Pharo%20Core%201.3/lastSuccessfulBuild/artifact/PharoCore-1.3.zip
|
Loading...