Mercurial > libpst
annotate package @ 24:f4643b609bdf stable-0-5-3 **INVALID**
switch to automake/autoconf
author | carl |
---|---|
date | Mon, 20 Feb 2006 15:14:54 -0800 |
parents | 69ab1d8b3293 |
children | 73e8959cd86b |
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 * | |
59 args="-z -e ssh --times --perms --links --relative --owner --group --numeric-ids --delete" | |
60 echo rcync $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
|
61 |
24 | 62 if [ -f /usr/local/bin/pst2ldif ]; then |
63 pushd /home/ldap | |
64 pst=outlook.pst | |
65 #rm -f pst2ldif.log my.log | |
66 /usr/local/bin/pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $pst >ams.ldif2 | |
67 #./readpstlog pst2ldif.log | less >my.log | |
68 #hexdump -C $pst >pst.dump | |
69 | |
70 grep '^dn:' ams.ldif2 | sort >aaa | |
71 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
|
72 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
|
73 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
|
74 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
|
75 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
|
76 fi |