Mercurial > libpst
comparison 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 |
comparison
equal
deleted
inserted
replaced
23:f86fa9e378a2 | 24:f4643b609bdf |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | |
3 pst=outlook.pst | |
4 cp /home/ldap/$pst . | |
5 | 2 |
6 T=`grep AM_INIT_AUTOMAKE configure.in | cut -d'(' -f2` | 3 T=`grep AM_INIT_AUTOMAKE configure.in | cut -d'(' -f2` |
7 NAME=`echo $T | cut -d, -f1` | 4 NAME=`echo $T | cut -d, -f1` |
8 VER=`echo $T | cut -d, -f2 | cut -d')' -f1` | 5 VER=`echo $T | cut -d, -f2 | cut -d')' -f1` |
9 BALL=$NAME-$VER.tar.gz | 6 BALL=$NAME-$VER.tar.gz |
10 web=/home/httpd/html/510sg/$NAME | 7 web=/home/httpd/html/510sg/$NAME |
11 distlog=/tmp/distcheck | 8 distlog=/tmp/distcheck |
12 | 9 |
13 echo $web $BALL | |
14 | |
15 chown --recursive root:root * | 10 chown --recursive root:root * |
16 make -f *cvs | 11 make -f *cvs |
17 ./configure >/dev/null | 12 ./configure >/dev/null |
18 (cd xml; make; make distclean) | 13 (cd xml; make; make distclean) |
19 chown --recursive carl:carl * | 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 | |
20 make distcheck >$distlog 2>&1 | 23 make distcheck >$distlog 2>&1 |
21 | 24 |
22 exit | 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 .. | |
23 | 38 |
24 if [ -f pst2ldif ]; then | 39 # build rpm on target |
25 rm -f pst2ldif.log my.log | 40 target=host62 |
26 ./pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $pst >ams.ldif | 41 scp $BALL $target:/tmp |
27 ./readpstlog pst2ldif.log | less >my.log | 42 ssh $target "cd /tmp; rpmbuild -ta $BALL" |
28 hexdump -C $pst >pst.dump | |
29 | 43 |
30 grep '^dn:' ams.ldif | sort >aaa | 44 # add packages to the web site |
31 grep '^dn:' /home/ldap/ams.ldif | sort >bbb | 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:/ | |
61 | |
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 | |
32 echo 'differences from nightly ldap' | 72 echo 'differences from nightly ldap' |
33 diff aaa bbb | 73 diff aaa bbb |
34 echo 'end differences' | 74 echo 'end differences' |
35 rm -f aaa bbb | 75 rm -f aaa bbb |
36 fi | 76 fi |