view package @ 20:1acd3231c3a4

switch to automake/autoconf
author carl
date Sun, 19 Feb 2006 20:19:38 -0800
parents 69ab1d8b3293
children f4643b609bdf
line wrap: on
line source

#!/bin/bash

pst=outlook.pst
cp /home/ldap/$pst .

T=`grep AM_INIT_AUTOMAKE configure.in | cut -d'(' -f2`
NAME=`echo $T | cut -d, -f1`
VER=`echo $T | cut -d, -f2 | cut -d')' -f1`
BALL=$NAME-$VER.tar.gz
web=/home/httpd/html/510sg/$NAME
distlog=/tmp/distcheck

echo $web $BALL

chown --recursive root:root *
make -f *cvs
./configure >/dev/null
(cd xml; make; make distclean)
chown --recursive carl:carl *
make distcheck >$distlog 2>&1

exit

if [ -f pst2ldif ]; then
    rm -f pst2ldif.log my.log
    ./pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $pst >ams.ldif
    ./readpstlog pst2ldif.log | less >my.log
    hexdump -C $pst >pst.dump

    grep '^dn:' ams.ldif            | sort >aaa
    grep '^dn:' /home/ldap/ams.ldif | sort >bbb
    echo 'differences from nightly ldap'
    diff aaa bbb
    echo 'end differences'
    rm -f aaa bbb
fi