comparison 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
comparison
equal deleted inserted replaced
197:3b69ee1ed10f 198:fbcf2733fe79
1 #!/bin/bash 1 #!/bin/bash
2 2
3 find . -name '*~' | while read a; do rm -f "$a"; done 3 find . -name '*~' | while read a; do rm -f "$a"; done
4 4
5
6 # get a new clean copy from source control
7 orig=$(pwd)
8 pack=$orig/../dnsbl-package
9 [ -d "$pack" ] && rm -rf "$pack"
10 mkdir "$pack"
11 cd "$pack"
12 hg clone /usr/hg-repository/dnsbl
13 cd dnsbl
14
15
16 # build the dnsbl package
5 T=`grep AC_INIT configure.in | cut -d'(' -f2` 17 T=`grep AC_INIT configure.in | cut -d'(' -f2`
6 NAME=`echo $T | cut -d, -f1` 18 NAME=`echo $T | cut -d, -f1`
7 VER=`echo $T | cut -d, -f2` 19 VER=`echo $T | cut -d, -f2`
8 BALL=$NAME-$VER.tar.gz 20 BALL=$NAME-$VER.tar.gz
9 web=/home/httpd/html/510sg/$NAME 21 web=/home/httpd/html/510sg/$NAME
64 fi 76 fi
65 else 77 else
66 tail -10 $distlog 78 tail -10 $distlog
67 fi 79 fi
68 chown --recursive carl:carl * 80 chown --recursive carl:carl *
81
82
83 # throw away the packaging directory
84 cd "$pack/.."
85 rm -rf dnsbl-package
86 cd "$orig"