annotate package @ 114:f4f5fb263072

cleanup list of tlds, add trailing / on http package directory reference
author carl
date Sat, 24 Dec 2005 06:26:48 -0800
parents a893afee4b80
children aa07452e641b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
107
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
1 #!/bin/bash
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
2
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
3 T=`grep AM_INIT_AUTOMAKE configure.in | cut -d'(' -f2`
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
4 NAME=`echo $T | cut -d, -f1`
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
5 VER=`echo $T | cut -d, -f2 | cut -d')' -f1`
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
6 BALL=$NAME-$VER.tar.gz
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
7 web=/home/httpd/html/510sg/$NAME
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
8 distlog=/tmp/distcheck
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
9
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
10 chown --recursive root:root *
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
11 make -f *cvs
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
12 ./configure >/dev/null
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
13 (cd xml; make; make distclean)
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
14 cp -a html/*html $web
107
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
15 make distcheck >$distlog 2>&1
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
16 if [ $? -eq 0 ]; then
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
17 if [ -f $BALL ]; then
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
18 # expand locally to see the tarball
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
19 rm -rf junk
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
20 mkdir junk
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
21 cd junk
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
22 tar xfz ../$BALL
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
23 cd $NAME-$VER
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
24 ./configure >/dev/null
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
25 make >/dev/null
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
26 ## make install >/dev/null
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
27 ## if [ -f /etc/rc.d/init.d/$NAME ]; then
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
28 ## /etc/rc.d/init.d/$NAME stop
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
29 ## fi
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
30 ## make chkconfig
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
31 ## if [ -f /etc/rc.d/init.d/$NAME ]; then
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
32 ## chkconfig $NAME on
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
33 ## /etc/rc.d/init.d/$NAME start
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
34 ## fi
113
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
35 cd ..
a893afee4b80 move to autoconf/automake/docbook
carl
parents: 112
diff changeset
36 cd ..
107
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
37
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
38 # build rpm on target
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
39 target=host62
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
40 scp $BALL $target:/tmp
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
41 ssh $target "cd /tmp; rpmbuild -ta $BALL"
107
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
42
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
43 # add packages to the web site
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
44 wp=$web/packages
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
45 wp4=$wp/centos4
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
46 rp=/usr/src/redhat
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
47 mv -f $BALL $wp
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
48 scp $target:$rp/SRPMS/$NAME-$VER*rpm $wp
107
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
49 scp $target:$rp/RPMS/i386/$NAME-$VER*rpm $wp4
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
50 (cd $web; chown --recursive web:web *; ls -alR)
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
51 rpm -ql -p $wp4/$NAME-$VER*6.rpm
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
52 fi
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
53 else
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
54 tail -10 $distlog
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
55 fi
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
56 chown --recursive carl:carl *