view package @ 15:ac98f448b6ab

patches from debian
author carl
date Sun, 19 Feb 2006 14:50:06 -0800
parents 3f627519a92d
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