Mercurial > dnsbl
annotate package @ 148:9330b8d6a56b
add documentation fixes, allow env_from target of inherit
author | carl |
---|---|
date | Tue, 30 Jan 2007 16:27:49 -0800 |
parents | aa07452e641b |
children | c7fc218686f5 |
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 | |
40 target=host62 | |
41 scp $BALL $target:/tmp | |
112 | 42 ssh $target "cd /tmp; rpmbuild -ta $BALL" |
107 | 43 |
44 # add packages to the web site | |
45 wp=$web/packages | |
46 wp4=$wp/centos4 | |
117 | 47 mkdir -p $wp4 |
107 | 48 rp=/usr/src/redhat |
112 | 49 mv -f $BALL $wp |
50 scp $target:$rp/SRPMS/$NAME-$VER*rpm $wp | |
107 | 51 scp $target:$rp/RPMS/i386/$NAME-$VER*rpm $wp4 |
52 (cd $web; chown --recursive web:web *; ls -alR) | |
53 rpm -ql -p $wp4/$NAME-$VER*6.rpm | |
54 fi | |
55 else | |
56 tail -10 $distlog | |
57 fi | |
58 chown --recursive carl:carl * |