annotate package @ 28:51d826f31329

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