Subversion Repositories Applications.framework

Compare Revisions

No changes between revisions

Ignore whitespace Rev 463 → Rev 464

/trunk/doc/genererPhpDoc.sh
New file
0,0 → 1,48
#!/bin/bash
########################################################################################################################
# But : création de la PhpDoc du Framework.
# Auteur : Jean-Pascal Milcent <jpm@tela-botanica.org>
# License : GPL v3
# Création : 12 mars 2014
# Version: 2
# Exemple : ./genererPhpDoc.sh "Mon Titre"
########################################################################################################################
# Constante
TITRE=""
SOURCE="./../framework"
CIBLE="./PhpDoc"
IGNORER=".htaccess,config.ini"
FORMAT="clean"
 
# Aide
E_OPTERR=65
if [ "$1" = '--help' ]
then # Le script a besoin d'au moins un argument sur la ligne de commande
echo "Usage $0 -[parameters -t ]"
echo "Paramétres : "
echo " -t: indiquer le titre de la doc"
exit $E_OPTERR
fi
 
# Récupération des paramètres et des options de la ligne de commande
TEMP=`getopt -o t: -l help: -- "$@"`
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
eval set -- "$TEMP"
while [ ! -z "$1" ] ; do
#echo $1" # "$2
case "$1" in
-t) TITRE=$2;;
--) shift ; break ;;
*) echo "Internal error!" ; exit 1 ;;
esac
shift 2
done
 
# Suppression des dossiers précédent de la doc
if [ -d PhpDoc ]; then
rm -fR PhpDoc
mkdir PhpDoc
fi;
 
echo "Génération de la documentation :";
/opt/lampp/bin/php /opt/lampp/bin/phpdoc -d "$SOURCE" -t "$CIBLE" -i "$IGNORER" --template="$FORMAT" --title="$TITRE"
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
Added: svn:executable
+*
\ No newline at end of property