build.properties is now a template. This allows the build process to replace strings. Any token prefixed with SED should be replaced by the build script. The output goes to build.properties.
#!/bin/shset -x SCRIPTS_DIR=/home/symbian/wrttools/scriptsBASE_DIR=/home/symbian/scratch/build_dirDAY_OF_YEAR=`date +%j`HG_CMD=/usr/local/bin/hgANT_CMD=/usr/local/apache-ant-1.8.0/bin/antexport 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:/binexport SOURCE_DIR=${BASE_DIR}/${DAY_OF_YEAR}/workspace/wrttoolsexport BUILD_DIR=${BASE_DIR}/${DAY_OF_YEAR}/eclipse.build# display date and time date# create build structuremkdir -p ${BASE_DIR}/${DAY_OF_YEAR}/workspacemkdir -p ${BASE_DIR}# check out the code.cd ${BASE_DIR}/${DAY_OF_YEAR}/workspace${HG_CMD} clone http://sym-mrswitch:8000 wrttools cd ${SOURCE_DIR}/scripts# set the build directory in the build.properties files. cat ${SOURCE_DIR}/scripts/build.properties.SED | sed -e s#SED_BUILD_DIR#${BUILD_DIR}#g > ${SOURCE_DIR}/scripts/build.properties${ANT_CMD} -DbuildDirectory=${BUILD_DIR} -DsourceDirectory=${SOURCE_DIR}