annotate package @ 26:9eeba3f4ca4b

more cleanup from Arne
author carl
date Sat, 25 Feb 2006 12:45:57 -0800
parents 73e8959cd86b
children 51d826f31329
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
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
15 ## make
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
16 ## pst=/home/ldap/outlook.pst
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
17 ## rm -f pst2ldif.log my.log
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
18 ## src/pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $pst >ams.ldif
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
19 ## src/readpstlog pst2ldif.log | less >my.log
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
20 ## hexdump -C -v $pst >pst.dump
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
21 ## chown --recursive carl:carl *
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
22 ## exit
18
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
23 make distcheck >$distlog 2>&1
69ab1d8b3293 switch to automake/autoconf
carl
parents: 15
diff changeset
24
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
25 if [ $? -eq 0 ]; then
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
26 if [ -f $BALL ]; then
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
27 # expand locally to see the tarball
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
28 rm -rf junk
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
29 mkdir junk
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
30 cd junk
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
31 tar xfz ../$BALL
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
32 cd $NAME-$VER
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
33 ./configure >/dev/null
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
34 make >/dev/null
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
35 make install >/dev/null
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
36 cd ..
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
37 cd ..
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
38
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
39 # build rpm on target
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
40 target=host62
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
41 scp $BALL $target:/tmp
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
42 ssh $target "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
43
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
44 # add packages to the web site
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
45 wp=$web/packages
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
46 wp4=$wp/centos4
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
47 mkdir -p $wp4
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
48 rp=/usr/src/redhat
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
49 mv -f $BALL $wp
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
50 scp $target:$rp/SRPMS/$NAME-$VER*rpm $wp
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
51 scp $target:$rp/RPMS/i386/$NAME-$VER*rpm $wp4
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
52 (cd $web; chown --recursive web:web .; ls -alR)
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
53 rpm -ql -p $wp4/$NAME-$VER*6.rpm
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 *
25
73e8959cd86b patches from Arne
carl
parents: 24
diff changeset
59 args="--recursive -z -e ssh --times --perms --links --relative --owner --group --numeric-ids --delete"
73e8959cd86b patches from Arne
carl
parents: 24
diff changeset
60 echo rsync $args $web ns1:/
73e8959cd86b patches from Arne
carl
parents: 24
diff changeset
61 rsync $args $web ns1:/
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
62
24
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
63 if [ -f /usr/local/bin/pst2ldif ]; then
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
64 pushd /home/ldap
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
65 pst=outlook.pst
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
66 #rm -f pst2ldif.log my.log
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
67 /usr/local/bin/pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $pst >ams.ldif2
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
68 #./readpstlog pst2ldif.log | less >my.log
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
69 #hexdump -C $pst >pst.dump
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
70
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
71 grep '^dn:' ams.ldif2 | sort >aaa
f4643b609bdf switch to automake/autoconf
carl
parents: 18
diff changeset
72 grep '^dn:' ams.ldif | sort >bbb
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
73 echo 'differences from nightly ldap'
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
74 diff aaa bbb
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
75 echo 'end differences'
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
76 rm -f aaa bbb
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
77 fi