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