summaryrefslogtreecommitdiffstats
path: root/release/docu
blob: 0e589dcca5baf5bfb090c906b477978251b0a387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CDPATH=

adir=`dirname $0`
adir=`cd $adir && pwd`
files=`cd $1 && find . -type f -path "*doc*index.docbook"`
for f in $files; do
  (
        dir=`dirname $f`

        # is it cached ?
        if test -f $adir/cache/$1/$dir/index.cache.bz2; then
           cp $adir/cache/$1/$dir/index.cache.bz2 $1/$dir
        fi

        cd $1/$dir
        echo `pwd`

        if test ! -f index.cache.bz2; then

            if test ! -x "`which meinproc`"; then
                echo ""
                echo "!!! No meinproc found. No docu generated.. !!!";
                echo ""
            else
                echo Running `which meinproc` --cache index.cache.bz2 index.docbook
                meinproc --cache index.cache.bz2 index.docbook
		mkdir -p $adir/cache/$1/$dir
                cp index.cache.bz2 $adir/cache/$1/$dir/
                if test "$?" != 0; then
                    echo $1/$f >> $adir/source/FAILED
                fi
            fi
        fi
  )
done

# make sure we leave no corefiles behind
find $1 -type f -name "core" | xargs rm -f