Rev 464 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/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 -t "Mon Titre"######################################################################################################################### ConstanteTITRE=""SOURCE="./../framework"CIBLE="./PhpDoc"IGNORER=".htaccess,config.ini"FORMAT="clean"# AideE_OPTERR=65if [ "$1" = '--help' ]then # Le script a besoin d'au moins un argument sur la ligne de commandeecho "Usage $0 -[parameters -t ]"echo "Paramétres : "echo " -t: indiquer le titre de la doc"exit $E_OPTERRfi# Récupération des paramètres et des options de la ligne de commandeTEMP=`getopt -o t: -l help: -- "$@"`if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fieval set -- "$TEMP"while [ ! -z "$1" ] ; do#echo $1" # "$2case "$1" in-t) TITRE=$2;;--) shift ; break ;;*) echo "Internal error!" ; exit 1 ;;esacshift 2done# Suppression des dossiers précédent de la docif [ -d PhpDoc ]; thenrm -fR PhpDocmkdir PhpDocfi;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"