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