diff package @ 198:fbcf2733fe79

always rebuild from clean source control tip, rather than from working directory
author Carl Byington <carl@five-ten-sg.com>
date Sat, 02 Feb 2008 11:58:46 -0800
parents 8f4a9a37d4d9
children d1ef12ab18b6
line wrap: on
line diff
--- 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"