# HG changeset patch # User Rob Landley # Date 1199221391 21600 # Node ID c3e8c6662b58036d8315f10196196a6ad2242670 # Parent e005f4279b36853938f06957cc7018af69045ccc Fix include.sh to consistently use noversion, and rephrase the sed invocation in noversion to not need -r (which makes building on MacOS X easier). diff -r e005f4279b36 -r c3e8c6662b58 include.sh --- a/include.sh Tue Jan 01 03:12:59 2008 -0600 +++ b/include.sh Tue Jan 01 15:03:11 2008 -0600 @@ -4,7 +4,7 @@ function noversion() { - echo "$1" | sed -r -e 's/-*([0-9\.]|[_-]rc|-pre|[0-9][a-zA-Z])*(\.tar\..z2*)$/\2/' + echo "$1" | sed -e 's/-*\([0-9\.]|[_-]rc|-pre|[0-9][a-zA-Z]\)*\(\.tar\..z2*\)$/\2/' } # output the sha1sum of a file @@ -87,7 +87,7 @@ function download() { FILENAME=`echo "$URL" | sed 's .*/ '` - BASENAME=`echo "$FILENAME" | sed -r -e 's/-*([0-9\.]|[_-]rc|-pre|[0-9][a-zA-Z])*(\.tar\..z2*)$/\2/'` + BASENAME=`noversion "$FILENAME"` # The extra "" is so we test the sha1sum after the last download.