annotate package @ 30:45eccad4b606 stable-0-5-4

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