[asterisk-dev] [asterisk-commits] kpfleming: trunk r89326 - in /trunk: ./ build_tools/ include/asterisk/ main/

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Nov 16 12:36:27 CST 2007


On Friday 16 November 2007 11:57:09 Luigi Rizzo wrote:
> On Fri, Nov 16, 2007 at 04:57:00PM -0000, SVN commits to the Asterisk 
project wrote:
> > Author: kpfleming
> > Date: Fri Nov 16 10:56:59 2007
> > New Revision: 89326
> >
> > URL: http://svn.digium.com/view/asterisk?view=rev&rev=89326
> > Log:
> > Merged revisions 89325 via svnmerge from
> > https://origsvn.digium.com/svn/asterisk/branches/1.4
> >
> > ........
> > r89325 | kpfleming | 2007-11-16 10:47:46 -0600 (Fri, 16 Nov 2007) | 4
> > lines
> >
> >
> >  fi
> > +BUILDSUM=`echo ${TMP} | md5sum`
> > +echo "#define AST_BUILDOPT_SUM {0x${BUILDSUM:0:8}, 0x${BUILDSUM:8:8},
> > 0x${BUILDSUM:16:8}, 0x${BUILDSUM:24:8}}"
>
> both md5sum and the expansion ${BUILDSUM:0:8} are specific of linux.
> md5sum is called "md5" on FreeBSD, while i don't think the default
> shell has a simple way to extract substrings - i should probably play
> tricks with awk or sed but i'd rather not.
>
> How about storing the md5 as a string and just rely on that ?
> The overhead is minimal...

echo 54321 | cut -c3-5

-- 
Tilghman



More information about the asterisk-dev mailing list