~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to config/pre_hook.sh

  • Committer: Monty Taylor
  • Date: 2009-07-16 15:39:19 UTC
  • mto: (1093.1.16 captain)
  • mto: This revision was merged to the branch mainline in revision 1097.
  • Revision ID: mordred@inaugust.com-20090716153919-flvtdq71o0q1l37y
Fixed bash-isms in pre_hook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
1
# pre_hook.sh - Commands that we run before we run the autotools
3
2
 
4
3
RELEASE_DATE=`date +%Y.%m`
34
33
      -e "s/@RELEASE_COMMENT@/${RELEASE_COMMENT}/" \
35
34
    m4/bzr_version.m4.in > m4/bzr_version.m4.new
36
35
  
37
 
  if ! diff m4/bzr_version.m4.new m4/bzr_version.m4 >/dev/null 2>&1 ; then
 
36
  if diff m4/bzr_version.m4.new m4/bzr_version.m4 >/dev/null 2>&1 ; then
 
37
    rm m4/bzr_version.m4.new
 
38
  else
38
39
    mv m4/bzr_version.m4.new m4/bzr_version.m4
39
 
  else
40
 
    rm m4/bzr_version.m4.new
41
40
  fi
42
41
fi
43
42
 
53
52
      echo "$f" >> po/POTFILES.in.in
54
53
    fi
55
54
  done
56
 
  if ! diff po/POTFILES.in.in po/POTFILES.in >/dev/null 2>&1
 
55
  if diff po/POTFILES.in.in po/POTFILES.in >/dev/null 2>&1
57
56
  then
 
57
    rm po/POTFILES.in.in
 
58
  else
58
59
    mv po/POTFILES.in.in po/POTFILES.in
59
 
  else
60
 
    rm po/POTFILES.in.in
61
60
  fi
62
61
else
63
62
  touch po/POTFILES.in