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