scripts/shepard.sh
changeset 225 586ca734a1bc
parent 217 27fd31e7f051
child 228 913c9751c067
equal deleted inserted replaced
224:b408478166d3 225:586ca734a1bc
     2 
     2 
     3 set -x 
     3 set -x 
     4 
     4 
     5 SCRIPTS_DIR=/home/symbian/wrttools/scripts
     5 SCRIPTS_DIR=/home/symbian/wrttools/scripts
     6 BASE_DIR=/home/symbian/scratch/build_dir
     6 BASE_DIR=/home/symbian/scratch/build_dir
     7 DAY_OF_YEAR=`date +%j`
       
     8 ECLIPSE_TIMESTAMP=`date +%Y%m%d%H%M%S`-${BUILD_NUMBER:-NO_BUILD_NUMBER}
     7 ECLIPSE_TIMESTAMP=`date +%Y%m%d%H%M%S`-${BUILD_NUMBER:-NO_BUILD_NUMBER}
     9 HG_CMD=/usr/local/bin/hg
     8 HG_CMD=/usr/local/bin/hg
    10 ANT_CMD=/usr/local/apache-ant-1.8.0/bin/ant
     9 ANT_CMD=/usr/local/apache-ant-1.8.0/bin/ant
    11 
    10 
    12 export PATH=.:/usr/java/jdk1.6.0_18/bin:/usr/local/apache-ant-1.8.0/bin/ant:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    11 export PATH=.:/usr/java/jdk1.6.0_18/bin:/usr/local/apache-ant-1.8.0/bin/ant:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    13 
    12 
    14 export SOURCE_DIR=${BASE_DIR}/${DAY_OF_YEAR}/workspace/wrttools
    13 WS_DIR=${BASE_DIR}/${BUILD_NUMBER:-NO_BUILD_NUMBER}/workspace
    15 export BUILD_DIR=${BASE_DIR}/${DAY_OF_YEAR}/eclipse.build
    14 export SOURCE_DIR=${BASE_DIR}/${BUILD_NUMBER:-NO_BUILD_NUMBER}/workspace/wrttools
       
    15 export BUILD_DIR=${BASE_DIR}/${BUILD_NUMBER:-NO_BUILD_NUMBER}/eclipse.build
    16 
    16 
    17 # display date and time 
    17 # display date and time 
    18 date
    18 date
    19 
    19 
    20 # create build structure
    20 # create build structure
    21 
    21 
    22 mkdir -p ${BASE_DIR}/${DAY_OF_YEAR}/workspace
    22 mkdir -p ${WS_DIR}
    23 mkdir -p ${BASE_DIR}
       
    24 
    23 
    25 # check out the code.
    24 # check out the code.
    26 cd ${BASE_DIR}/${DAY_OF_YEAR}/workspace
    25 cd ${WS_DIR}
    27 ${HG_CMD} clone http://sym-mrswitch:8000 wrttools 
    26 ${HG_CMD} clone http://sym-mrswitch:8000 wrttools 
    28 
    27 
    29 cd ${SOURCE_DIR}/scripts
    28 cd ${SOURCE_DIR}/scripts
    30 
    29 
    31 # set the build directory in the build.properties files. 
    30 # set the build directory in the build.properties files.