annotate package @ 109:9978e29c4d71

move to autoconf/automake/docbook
author carl
date Sun, 18 Dec 2005 12:44:54 -0800
parents 1c7677042b78
children 75c10deb3fe9
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
109
9978e29c4d71 move to autoconf/automake/docbook
carl
parents: 108
diff changeset
10 echo $NAME $VER $BALL
9978e29c4d71 move to autoconf/automake/docbook
carl
parents: 108
diff changeset
11 exit
9978e29c4d71 move to autoconf/automake/docbook
carl
parents: 108
diff changeset
12
107
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
13 # make $BALL
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
14 chown --recursive root:root *
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
15 make -f *cvs
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
16 ./configure >/dev/null
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
17 (cd xml; make; make distclean)
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
18 cp -a html/*html $web
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
19 make distcheck >$distlog 2>&1
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
20 if [ $? -eq 0 ]; then
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
21 if [ -f $BALL ]; then
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
22 # expand locally to see the tarball
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
23 rm -rf junk
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
24 mkdir junk
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
25 cd junk
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
26 tar xfz ../$BALL
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
27 cd $NAME-$VER
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
28 ./configure >/dev/null
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
29 make >/dev/null
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
30 make install >/dev/null
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
31 if [ -f /etc/rc.d/init.d/$NAME ]; then
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
32 /etc/rc.d/init.d/$NAME stop
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
33 fi
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
34 make chkconfig
108
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 107
diff changeset
35 if [ -f /etc/rc.d/init.d/$NAME ]; then
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 107
diff changeset
36 chkconfig $NAME on
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 107
diff changeset
37 /etc/rc.d/init.d/$NAME start
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 107
diff changeset
38 fi
107
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
39 cd ..
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
40 cd ..
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
41
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
42 # build rpm on target
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
43 target=host62
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
44 scp $BALL $target:/tmp
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
45 ssh $target "cd /tmp; rpmbuild -ta $BALL >/dev/null 2>&1"
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
46
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
47 # add packages to the web site
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
48 wp=$web/packages
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
49 wp4=$wp/centos4
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
50 rp=/usr/src/redhat
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
51 cp -a $BALL $wp
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
52 scp $target:$rp/SRPMS/$NAME-$VER*rpm $wp4
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
53 scp $target:$rp/RPMS/i386/$NAME-$VER*rpm $wp4
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
54 (cd $web; chown --recursive web:web *; ls -alR)
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
55 rpm -ql -p $wp4/$NAME-$VER*6.rpm
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
56 fi
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
57 else
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
58 tail -10 $distlog
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
59 fi
eeaaecda4acc move to autoconf/automake/docbook
carl
parents:
diff changeset
60 chown --recursive carl:carl *