~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002110857

« back to all changes in this revision

Viewing changes to hcachever.sh.in

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-06-07 17:30:03 UTC
  • mto: (16.2.1 experimental) (2.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090607173003-rg37ui3h2bbv7wl0
Tags: upstream-1.5.19
ImportĀ upstreamĀ versionĀ 1.5.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
BASEVERSION=2
4
4
 
5
 
MD5=@MD5@
6
 
if test "$MD5" = "openssl"
7
 
then
8
 
  MD5="openssl md5 -hex"
9
 
elif test "$MD5" = "none"
10
 
then
11
 
  echo "ERROR: no MD5 tool found"
12
 
  exit 1
13
 
fi
14
 
 
15
5
cleanstruct () {
16
6
  echo "$1" | sed -e 's/} *//' -e 's/;$//'
17
7
}
91
81
done
92
82
echo " */" >> $TMPD
93
83
 
94
 
MD5TEXT=`echo "$TEXT" | $MD5`
 
84
MD5TEXT=`echo "$TEXT" | ./mutt_md5`
95
85
echo "#define HCACHEVER 0x"`echo $MD5TEXT | cut -c-8` >> $TMPD
96
86
 
97
87
# TODO: validate we have all structs