~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to config/autorun.sh

  • Committer: Monty Taylor
  • Date: 2009-03-02 23:14:32 UTC
  • mto: This revision was merged to the branch mainline in revision 910.
  • Revision ID: mordred@inaugust.com-20090302231432-i35xehp7uzo6hjjw
Updated build system to use new version numbering. Just remember to run ./config/autorun.sh before running make distcheck for release and all should be peachy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
if test -d ".bzr" ; then
31
31
  bzr log --short > ChangeLog || touch ChangeLog
 
32
  BZR_REVNO=`bzr revno`
 
33
  BZR_REVID=`bzr log -r-1 --show-ids | grep revision-id | awk '{print $2}' | head -1`
 
34
  BZR_BRANCH=`bzr nick`
 
35
  RELEASE_DATE=`date +%Y.%m`
 
36
  RELEASE_VERSION="${RELEASE_DATE}.${BZR_REVNO}"
 
37
  if test "x${BZR_BRANCH}" != "xdrizzle" ; then
 
38
    RELEASE_VERSION="${RELEASE_VERSION}-${BZR_BRANCH}"
 
39
  fi
 
40
  sed -e "s/@BZR_REVNO@/${BZR_REVNO}/" \
 
41
      -e "s/@BZR_REVID@/${BZR_REVID}/" \
 
42
      -e "s/@BZR_BRANCH@/${BZR_BRANCH}/" \
 
43
      -e "s/@RELEASE_DATE@/${RELEASE_DATE}/" \
 
44
      -e "s/@RELEASE_VERSION@/${RELEASE_VERSION}/" \
 
45
    m4/bzr_version.m4.in > m4/bzr_version.m4.new
 
46
 
 
47
  if ! diff m4/bzr_version.m4.new m4/bzr_version.m4 >/dev/null 2>&1 ; then
 
48
    mv m4/bzr_version.m4.new m4/bzr_version.m4
 
49
  fi
32
50
else
33
51
  touch ChangeLog
34
52
fi