comparison package @ 31:b88ceb81dba2

mege changes from Joe Nahmias
author carl
date Tue, 10 Jul 2007 17:17:28 -0700
parents 311e52c62f06
children c03974357771
comparison
equal deleted inserted replaced
30:45eccad4b606 31:b88ceb81dba2
10 chown --recursive root:root * 10 chown --recursive root:root *
11 make -f *cvs 11 make -f *cvs
12 ./configure >/dev/null 12 ./configure >/dev/null
13 (cd xml; make; make distclean) 13 (cd xml; make; make distclean)
14 cp -a html/*html $web 14 cp -a html/*html $web
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 else
25 rm -f pst2ldif.log my.log ams.ldif pst.dump
26 fi
27 make distcheck >$distlog 2>&1 15 make distcheck >$distlog 2>&1
28 16
29 if [ $? -eq 0 ]; then 17 if [ $? -eq 0 ]; then
30 if [ -f $BALL ]; then 18 if [ -f $BALL ]; then
31 # expand locally to see the tarball 19 # expand locally to see the tarball
39 make install >/dev/null 27 make install >/dev/null
40 cd .. 28 cd ..
41 cd .. 29 cd ..
42 30
43 # build rpm on target 31 # build rpm on target
44 target=host62 32 target5=pmg2
45 scp $BALL $target:/tmp 33 scp $BALL $target5:/tmp
46 ssh $target "cd /tmp; rpmbuild -ta $BALL" 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"
47 40
48 # add packages to the web site 41 # add packages to the web site
49 wp=$web/packages 42 wp=$web/packages
50 wp4=$wp/centos4 43 wp4=$wp/centos4
51 mkdir -p $wp4 44 wp5=$wp/centos5
45 mkdir -p $wp4 $wp5
52 rp=/usr/src/redhat 46 rp=/usr/src/redhat
53 mv -f $BALL $wp 47 mv -f $BALL $wp
54 scp $target:$rp/SRPMS/$NAME-$VER*rpm $wp 48 scp $target4:$rp/SRPMS/$NAME-$VER*rpm $wp
55 scp $target:$rp/RPMS/i386/$NAME-$VER*rpm $wp4 49 scp $target4:$rp/RPMS/i386/$NAME-$VER*rpm $wp4
56 (cd $web; chown --recursive web:web .; ls -alR) 50 scp $target5:$rp/RPMS/i386/$NAME-$VER*rpm $wp5
51 (cd $web; chown --recursive web:web *; ls -alR)
57 rpm -ql -p $wp4/$NAME-$VER*6.rpm 52 rpm -ql -p $wp4/$NAME-$VER*6.rpm
53 rpm -ql -p $wp5/$NAME-$VER*6.rpm
58 fi 54 fi
59 else 55 else
60 tail -10 $distlog 56 tail -10 $distlog
61 fi 57 fi
62 chown --recursive carl:carl * 58 chown --recursive carl:carl *