#!/bin/bash
# Time-stamp: <2009-03-12 12:30:30 phm>

# MBOX2DOK=true

DOK="$1";
test "$DOK" || { echo "brauche DOK als Argument";exit 1; };
DIR=$(dokdir $DOK);
test "$DIR" || { echo "unbekanntes Dokument ${DOK}";exit 1; };
cd $DIR || { echo "kann nicht in Verzeichnis ${DIR} wechseln";exit 1; };
svn_update -v
svn_resolve -v
mktdir_include_repl
find . -name '@nav.*.txt' | while read F;do D=$(dirname $F);echo $D;(cd $D && nav_tmpl_repl -v && { test ! "$MBOX2DOK" || mbox2dok -v; });done;
make nocache commit 
#EOF