~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to config/autorun.sh

  • Committer: Brian Aker
  • Date: 2009-03-03 18:50:34 UTC
  • mfrom: (908.1.17 mordred)
  • Revision ID: brian@tangent.org-20090303185034-obr7tiwx8vyn0i7j
Merge Monty

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
  else
 
50
    rm m4/bzr_version.m4.new
 
51
  fi
32
52
else
33
53
  touch ChangeLog
34
54
fi