#! /bin/ksh WRD=/net/borg.sfbay/builds/bubbva/wr WRR=$(basename ${CODEMGR_WS}) SEQFILE=${WRD}/.${WRR}.seq version=0 if [ -f ${SEQFILE} ] then version=$(cat ${SEQFILE}) version=$(expr ${version} + 1) fi while [ -d ${WRD}/${WRR}.${version} ] do version=$(expr $version + 1) done echo ${version} > ${SEQFILE} WDIR=${WRD}/${WRR}.${version} export WDIR mkdir -p ${WDIR} cd ${CODEMGR_WS} /usr/bin/hg webrev $1 echo "" echo "${WRD}/${WRR}.${version}/index.html" echo "http://jurassic-x4600.sfbay/~bubbva/hgwr/${WRR}.${version}/index.html"