comparison package @ 112:96b2eb7f25f5

move to autoconf/automake/docbook
author carl
date Sun, 18 Dec 2005 16:56:38 -0800
parents d0dad5610980
children a893afee4b80
comparison
equal deleted inserted replaced
111:d0dad5610980 112:96b2eb7f25f5
12 ./configure >/dev/null 12 ./configure >/dev/null
13 (cd xml; make; make distclean) 13 (cd xml; make; make distclean)
14 # cp -a html/*html $web 14 # cp -a html/*html $web
15 make distcheck >$distlog 2>&1 15 make distcheck >$distlog 2>&1
16 if [ $? -eq 0 ]; then 16 if [ $? -eq 0 ]; then
17 ls -al xml
18 exit
19
20 if [ -f $BALL ]; then 17 if [ -f $BALL ]; then
21 # expand locally to see the tarball 18 # expand locally to see the tarball
22 rm -rf junk 19 rm -rf junk
23 mkdir junk 20 ## mkdir junk
24 cd junk 21 ## cd junk
25 tar xfz ../$BALL 22 ## tar xfz ../$BALL
26 cd $NAME-$VER 23 ## cd $NAME-$VER
27 ./configure >/dev/null 24 ## ./configure >/dev/null
28 make >/dev/null 25 ## make >/dev/null
29 make install >/dev/null 26 ## make install >/dev/null
30 if [ -f /etc/rc.d/init.d/$NAME ]; then 27 ## if [ -f /etc/rc.d/init.d/$NAME ]; then
31 /etc/rc.d/init.d/$NAME stop 28 ## /etc/rc.d/init.d/$NAME stop
32 fi 29 ## fi
33 make chkconfig 30 ## make chkconfig
34 if [ -f /etc/rc.d/init.d/$NAME ]; then 31 ## if [ -f /etc/rc.d/init.d/$NAME ]; then
35 chkconfig $NAME on 32 ## chkconfig $NAME on
36 /etc/rc.d/init.d/$NAME start 33 ## /etc/rc.d/init.d/$NAME start
37 fi 34 ## fi
38 cd .. 35 ## cd ..
39 cd .. 36 ## cd ..
40 37
41 # build rpm on target 38 # build rpm on target
42 target=host62 39 target=host62
43 scp $BALL $target:/tmp 40 scp $BALL $target:/tmp
44 ssh $target "cd /tmp; rpmbuild -ta $BALL >/dev/null 2>&1" 41 ssh $target "cd /tmp; rpmbuild -ta $BALL"
45 42
46 # add packages to the web site 43 # add packages to the web site
47 wp=$web/packages 44 wp=$web/packages
48 wp4=$wp/centos4 45 wp4=$wp/centos4
49 rp=/usr/src/redhat 46 rp=/usr/src/redhat
50 cp -a $BALL $wp 47 mv -f $BALL $wp
51 scp $target:$rp/SRPMS/$NAME-$VER*rpm $wp4 48 scp $target:$rp/SRPMS/$NAME-$VER*rpm $wp
52 scp $target:$rp/RPMS/i386/$NAME-$VER*rpm $wp4 49 scp $target:$rp/RPMS/i386/$NAME-$VER*rpm $wp4
53 (cd $web; chown --recursive web:web *; ls -alR) 50 (cd $web; chown --recursive web:web *; ls -alR)
54 rpm -ql -p $wp4/$NAME-$VER*6.rpm 51 rpm -ql -p $wp4/$NAME-$VER*6.rpm
55 fi 52 fi
56 else 53 else