Changeset 13263


Ignore:
Timestamp:
2012-10-08T22:54:59+02:00 (12 years ago)
Author:
adrpo
Message:
  • more improvements, ssh copy to build.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • installers/windows/OpenModelicaSetup/BuildWindowsRelease.sh

    r13262 r13263  
    1 #!/bin/bash -x
    2 # script to build the OpenModelica release
     1#!/bin/bash -xe
     2# script to build the OpenModelica nightly-build
    33# Adrian Pop [adrian.pop@liu.se]
    44# 2012-10-08
     
    1111#  jdk
    1212
     13# get the ssh password via command line
     14export SSHUSER=$1
    1315
    1416# set the path to our tools
     
    2426# update OMDev
    2527cd /c/OMDev/
    26 svn up
     28svn up . --accept theirs-full
    2729
    2830# update OpenModelica
    2931cd /c/dev/OpenModelica
    30 svn up
     32svn up . --accept theirs-full
    3133# get the revision
    3234export REVISION=`svn info | grep "Revision:" | cut -d " " -f 2`
     
    4749# update OpenModelicaSetup
    4850cd /c/dev/OpenModelica/Compiler/OpenModelicaSetup
    49 svn up
     51svn up . --accept theirs-full
    5052
    5153# build OpenModelica
     54#cd /c/dev/OpenModelica
     55#make -f 'Makefile.omdev.mingw' clean
    5256cd /c/dev/OpenModelica
    53 make -f Makefile.omdev.mingw clean
    54 make -f Makefile.omdev.mingw omc
    55 make -f Makefile.omdev.mingw install-python
     57make -f 'Makefile.omdev.mingw' all
     58cd /c/dev/OpenModelica
     59make -f 'Makefile.omdev.mingw' install-python
    5660
    5761# build the .qm files from .ts files for OMEdit
     
    6165# build the installer
    6266cd /c/dev/OpenModelica/Compiler/OpenModelicaSetup
    63 makensisw /V4 OpenModelicaSetup.nsi
     67makensis OpenModelicaSetup.nsi
    6468# move the installer
    6569mv OpenModelica.exe ${FILE_PREFIX}.exe
     
    7276export DATESTR=`date +"%Y-%m-%d_%H-%M"`
    7377echo "Automatic build of OpenModelica by testwin.openmodelica.org at date: ${DATESTR} from revision: ${REVISION}" >> ${FILE_PREFIX}-README.txt
     78echo " " >> ${FILE_PREFIX}-README.txt
    7479echo "Read OpenModelica-*-ChangeLog.txt for more info on changes." >> ${FILE_PREFIX}-README.txt
     80echo " " >> ${FILE_PREFIX}-README.txt
    7581echo "See also (match revision ${REVISION} to build jobs):" >> ${FILE_PREFIX}-README.txt
    7682echo "  https://test.openmodelica.org/hudson/" >> ${FILE_PREFIX}-README.txt
    7783echo "  http://test.openmodelica.org/~marsj/MSL31/BuildModelRecursive.html" >> ${FILE_PREFIX}-README.txt
    7884echo "  http://test.openmodelica.org/~marsj/MSL32/BuildModelRecursive.html" >> ${FILE_PREFIX}-README.txt
     85echo " " >> ${FILE_PREFIX}-README.txt
    7986cat >> ${FILE_PREFIX}-README.txt <<DELIMITER
    8087*Instructions to prepare test information if you find a bug:*
     
    115122echo "  https://test.openmodelica.org/hudson/" >> ${FILE_PREFIX}-testsuite-trace.txt
    116123
     124ls -lah ${PREFIX}
     125
     126cd ${PREFIX}
     127# move the last nightly build to the older location
     128ssh ${SSHUSER}@build.openmodelica.org <<ENDSSH
     129#commands to run on remote host
     130cd public_html/omc/builds/windows/nightly-builds/
     131mv -f OpenModelica* older/
     132ENDSSH
     133scp OpenModelica* ${SSHUSER}@build.openmodelica.org:public_html/omc/builds/windows/nightly-builds/
Note: See TracChangeset for help on using the changeset viewer.