#!/bin/bash gitnum=`git log| head -n 1 |cut -b 8-15` bdate=`date +%Y-%m-%d` #gitdate=`git log --pretty=format:"%ai"|head -n 1|cut -d " " -f 1` topdir=`pwd` updatever=212 patch=SP2 username=`echo $USER` buildtag=$username.`basename $topdir`.$gitnum.$bdate.$patch #sed -i '500a USER_RELEASE_SUFFIX=`'$buildtag'`' ./common/autoconf/jdk-options.m4 sed -i '499c USER_RELEASE_SUFFIX="'$buildtag'"' ./common/autoconf/jdk-options.m4 sed -i '500c JDK_UPDATE_VERSION='$updatever'' ./common/autoconf/jdk-options.m4