Mercurial > dnsbl
annotate package @ 177:a4d313c2460b
start embedded dcc filtering
author | carl |
---|---|
date | Sun, 30 Sep 2007 10:27:14 -0700 |
parents | c7fc218686f5 |
children | 8f4a9a37d4d9 |
rev | line source |
---|---|
107 | 1 #!/bin/bash |
2 | |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
117
diff
changeset
|
3 T=`grep AC_INIT configure.in | cut -d'(' -f2` |
107 | 4 NAME=`echo $T | cut -d, -f1` |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
117
diff
changeset
|
5 VER=`echo $T | cut -d, -f2` |
107 | 6 BALL=$NAME-$VER.tar.gz |
7 web=/home/httpd/html/510sg/$NAME | |
8 distlog=/tmp/distcheck | |
9 | |
117 | 10 mkdir -p $web |
107 | 11 chown --recursive root:root * |
12 make -f *cvs | |
13 ./configure >/dev/null | |
14 (cd xml; make; make distclean) | |
113 | 15 cp -a html/*html $web |
107 | 16 make distcheck >$distlog 2>&1 |
17 if [ $? -eq 0 ]; then | |
18 if [ -f $BALL ]; then | |
19 # expand locally to see the tarball | |
20 rm -rf junk | |
113 | 21 mkdir junk |
22 cd junk | |
23 tar xfz ../$BALL | |
24 cd $NAME-$VER | |
25 ./configure >/dev/null | |
26 make >/dev/null | |
112 | 27 ## make install >/dev/null |
28 ## if [ -f /etc/rc.d/init.d/$NAME ]; then | |
29 ## /etc/rc.d/init.d/$NAME stop | |
30 ## fi | |
31 ## make chkconfig | |
32 ## if [ -f /etc/rc.d/init.d/$NAME ]; then | |
33 ## chkconfig $NAME on | |
34 ## /etc/rc.d/init.d/$NAME start | |
35 ## fi | |
113 | 36 cd .. |
37 cd .. | |
107 | 38 |
39 # build rpm on target | |
152 | 40 target5=pmg2 |
41 scp $BALL $target5:/tmp | |
42 ssh $target5 "cd /tmp; rpmbuild -ta $BALL" | |
43 | |
44 # build rpm on target | |
45 target4=host62 | |
46 scp $BALL $target4:/tmp | |
47 ssh $target4 "cd /tmp; rpmbuild -ta $BALL" | |
107 | 48 |
49 # add packages to the web site | |
50 wp=$web/packages | |
51 wp4=$wp/centos4 | |
152 | 52 wp5=$wp/centos5 |
53 mkdir -p $wp4 $wp5 | |
107 | 54 rp=/usr/src/redhat |
112 | 55 mv -f $BALL $wp |
152 | 56 scp $target4:$rp/SRPMS/$NAME-$VER*rpm $wp |
57 scp $target4:$rp/RPMS/i386/$NAME-$VER*rpm $wp4 | |
58 scp $target5:$rp/RPMS/i386/$NAME-$VER*rpm $wp5 | |
107 | 59 (cd $web; chown --recursive web:web *; ls -alR) |
60 rpm -ql -p $wp4/$NAME-$VER*6.rpm | |
152 | 61 rpm -ql -p $wp5/$NAME-$VER*6.rpm |
107 | 62 fi |
63 else | |
64 tail -10 $distlog | |
65 fi | |
66 chown --recursive carl:carl * |