Mercurial > libpst
annotate package @ 56:b504411ad213
Added tag stable-0-6-6 for changeset 0cdbd066f65a
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 31 Jan 2008 22:26:46 -0800 |
parents | c03974357771 |
children | 7d5c637aaafb |
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 |
18 | 15 make distcheck >$distlog 2>&1 |
16 | |
24 | 17 if [ $? -eq 0 ]; then |
18 if [ -f $BALL ]; then | |
19 # expand locally to see the tarball | |
20 rm -rf junk | |
21 mkdir junk | |
22 cd junk | |
23 tar xfz ../$BALL | |
24 cd $NAME-$VER | |
25 ./configure >/dev/null | |
26 make >/dev/null | |
27 make install >/dev/null | |
28 cd .. | |
29 cd .. | |
30 | |
31 # build rpm on target | |
31 | 32 target5=pmg2 |
33 scp $BALL $target5:/tmp | |
34 ssh $target5 "cd /tmp; rpmbuild -ta $BALL" | |
35 | |
36 # build rpm on target | |
37 target4=host62 | |
38 scp $BALL $target4:/tmp | |
39 ssh $target4 "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
|
40 |
24 | 41 # add packages to the web site |
42 wp=$web/packages | |
43 wp4=$wp/centos4 | |
31 | 44 wp5=$wp/centos5 |
45 mkdir -p $wp4 $wp5 | |
24 | 46 rp=/usr/src/redhat |
47 mv -f $BALL $wp | |
31 | 48 scp $target4:$rp/SRPMS/$NAME-$VER*rpm $wp |
49 scp $target4:$rp/RPMS/i386/$NAME-$VER*rpm $wp4 | |
50 scp $target5:$rp/RPMS/i386/$NAME-$VER*rpm $wp5 | |
51 (cd $web; chown --recursive web:web *; ls -alR) | |
24 | 52 rpm -ql -p $wp4/$NAME-$VER*6.rpm |
31 | 53 rpm -ql -p $wp5/$NAME-$VER*6.rpm |
24 | 54 fi |
55 else | |
56 tail -10 $distlog | |
57 fi | |
58 chown --recursive carl:carl * | |
32 | 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:/ | |
62 # | |
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 | |
73 # echo 'differences from nightly ldap' | |
74 # diff aaa bbb | |
75 # echo 'end differences' | |
76 # rm -f aaa bbb | |
77 # popd | |
78 #fi |