# HG changeset patch # User Carl Byington # Date 1201982326 28800 # Node ID fbcf2733fe7962f18664e07bdd6207f6a1c7b51b # Parent 3b69ee1ed10f85b7673e9d618af6ab6c076b315c always rebuild from clean source control tip, rather than from working directory diff -r 3b69ee1ed10f -r fbcf2733fe79 package --- a/package Sun Feb 03 03:33:37 2008 +0000 +++ b/package Sat Feb 02 11:58:46 2008 -0800 @@ -2,6 +2,18 @@ find . -name '*~' | while read a; do rm -f "$a"; done + +# get a new clean copy from source control +orig=$(pwd) +pack=$orig/../dnsbl-package +[ -d "$pack" ] && rm -rf "$pack" +mkdir "$pack" +cd "$pack" +hg clone /usr/hg-repository/dnsbl +cd dnsbl + + +# build the dnsbl package T=`grep AC_INIT configure.in | cut -d'(' -f2` NAME=`echo $T | cut -d, -f1` VER=`echo $T | cut -d, -f2` @@ -66,3 +78,9 @@ tail -10 $distlog fi chown --recursive carl:carl * + + +# throw away the packaging directory +cd "$pack/.." +rm -rf dnsbl-package +cd "$orig"