Sophie

Sophie

distrib > Mageia > 3 > x86_64 > by-pkgid > c7c4d184366212d7b93b6dfecd7a3bd2 > files > 4

php-pear-Net_Vpopmaild-0.3.2-2.mga3.noarch.rpm

#!/bin/sh

# This should be run from the Net/ directory
# phpdoc required


usage() {
    echo "usage: $0 <destination_dir>"
}

if [ -z $1 ] ; then
    echo "Error: no destination_dir argument given"
    usage
    exit
fi

# make sure Vpopmaild.php is available
if [ ! -f 'Vpopmaild.php' ] ; then
    echo "Error: Vpopmaild.php is not in your current directory"
    usage
    exit
fi

DOCSDIR=$1

phpdoc \
    -s on \
    -ti 'Net_Vpopmaild Documentation' \
    -dn 'Net_Vpopmaild' \
    -t $DOCSDIR.tmp \
    -f ./Vpopmaild.php,Vpopmaild/Base.php,Vpopmaild/Exception.php,Vpopmaild/FatalException.php \
    -o HTML:frames:DOM/earthli

mv $DOCSDIR $DOCSDIR.old
mv $DOCSDIR.tmp $DOCSDIR
rm -rf $DOCSDIR.old