annotate package @ 36:6fe121a971c9 stable-0-5-7

valgrind fixes
author carl
date Thu, 09 Aug 2007 15:46:34 -0700
parents c03974357771
children 7d5c637aaafb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
3f627519a92d properly ignore (second block zero) errors. that will just drop some unknown attachments, but the rest of the data is still found
carl
parents:
diff changeset
1 #!/bin/bash
3f627519a92d properly ignore (second block zero) errors. that will just drop some unknown attachments, but the rest of the data is still found
carl
parents:
diff changeset
2
18
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
3 T=`grep AM_INIT_AUTOMAKE configure.in | cut -d'(' -f2`
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
4 NAME=`echo $T | cut -d, -f1`
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
5 VER=`echo $T | cut -d, -f2 | cut -d')' -f1`
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
6 BALL=$NAME-$VER.tar.gz
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
7 web=/home/httpd/html/510sg/$NAME
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
8 distlog=/tmp/distcheck
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
9
12
3f627519a92d properly ignore (second block zero) errors. that will just drop some unknown attachments, but the rest of the data is still found
carl
parents:
diff changeset
10 chown --recursive root:root *
18
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
11 make -f *cvs
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
12 ./configure >/dev/null
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
13 (cd xml; make; make distclean)
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
14 cp -a html/*html $web
18
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
15 make distcheck >$distlog 2>&1
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
16
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
17 if [ $? -eq 0 ]; then
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
18 if [ -f $BALL ]; then
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
19 # expand locally to see the tarball
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
20 rm -rf junk
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
21 mkdir junk
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
22 cd junk
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
23 tar xfz ../$BALL
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
24 cd $NAME-$VER
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
25 ./configure >/dev/null
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
26 make >/dev/null
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
27 make install >/dev/null
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
28 cd ..
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
29 cd ..
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
30
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
31 # build rpm on target
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
32 target5=pmg2
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
33 scp $BALL $target5:/tmp
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
34 ssh $target5 "cd /tmp; rpmbuild -ta $BALL"
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
35
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
36 # build rpm on target
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
37 target4=host62
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
38 scp $BALL $target4:/tmp
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
39 ssh $target4 "cd /tmp; rpmbuild -ta $BALL"
12
3f627519a92d properly ignore (second block zero) errors. that will just drop some unknown attachments, but the rest of the data is still found
carl
parents:
diff changeset
40
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
41 # add packages to the web site
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
42 wp=$web/packages
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
43 wp4=$wp/centos4
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
44 wp5=$wp/centos5
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
45 mkdir -p $wp4 $wp5
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
46 rp=/usr/src/redhat
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
47 mv -f $BALL $wp
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
48 scp $target4:$rp/SRPMS/$NAME-$VER*rpm $wp
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
49 scp $target4:$rp/RPMS/i386/$NAME-$VER*rpm $wp4
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
50 scp $target5:$rp/RPMS/i386/$NAME-$VER*rpm $wp5
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
51 (cd $web; chown --recursive web:web *; ls -alR)
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
52 rpm -ql -p $wp4/$NAME-$VER*6.rpm
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 29
diff changeset
53 rpm -ql -p $wp5/$NAME-$VER*6.rpm
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
54 fi
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
55 else
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
56 tail -10 $distlog
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
57 fi
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
58 chown --recursive carl:carl *
32
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
59 #args="--recursive -z -e ssh --times --perms --links --relative --owner --group --numeric-ids --delete"
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
60 #echo rsync $args $web ns1:/
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
61 #rsync $args $web ns1:/
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
62 #
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
63 #if [ -f /usr/local/bin/pst2ldif ]; then
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
64 # pushd /home/ldap
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
65 # pst=outlook.pst
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
66 # #rm -f pst2ldif.log my.log
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
67 # /usr/local/bin/pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $pst >ams.ldif2
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
68 # #./readpstlog pst2ldif.log | less >my.log
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
69 # #hexdump -C $pst >pst.dump
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
70 #
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
71 # grep '^dn:' ams.ldif2 | sort >aaa
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
72 # grep '^dn:' ams.ldif | sort >bbb
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
73 # echo 'differences from nightly ldap'
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
74 # diff aaa bbb
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
75 # echo 'end differences'
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
76 # rm -f aaa bbb
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
77 # popd
c03974357771 mege changes from Joe Nahmias
carl
parents: 31
diff changeset
78 #fi