view package @ 16:c508ee15dfca

switch to automake/autoconf
author carl
date Sun, 19 Feb 2006 18:47:46 -0800
parents ac98f448b6ab
children 69ab1d8b3293
line wrap: on
line source

#!/bin/bash

pst=outlook.pst

cp /home/ldap/$pst .
chown --recursive root:root *
make clean
make all
chown --recursive carl:carl *

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