This commit is contained in:
Jephté Clain 2013-10-31 14:46:06 +04:00
parent cfdce28833
commit 2c64e083d4
6 changed files with 33 additions and 49 deletions

View File

@ -265,19 +265,14 @@ for file in "$@"; do
esac
fi
if [ "$t" == javaproperties ]; then
generate_javaproperties "$file" files2edit || r=$?
elif [ "$t" == java ]; then
generate_java "$file" files2edit || r=$?
elif [ "$t" == woapi ]; then
generate_woapi "$file" files2edit || r=$?
elif [ "$t" == wosrc ]; then
generate_wosrc "$file" files2edit || r=$?
elif [ "$t" == wosrccomp ]; then
generate_wosrccomp "$file" files2edit || r=$?
else
die "java: template invalide: $t"
fi
case "$t" in
javaproperties|properties|jprops|props) generate_javaproperties "$file" files2edit || r=$?;;
java|j) generate_java "$file" files2edit || r=$?;;
woapi|api) generate_woapi "$file" files2edit || r=$?;;
wosrc) generate_wosrc "$file" files2edit || r=$?;;
wosrccomp|wc) generate_wosrccomp "$file" files2edit || r=$?;;
*) die "$NAME: template invalide: $t";;
esac
done
if [ -n "$edit" -a "${#files2edit[*]}" -gt 0 ]; then

View File

@ -103,11 +103,10 @@ for file in "$@"; do
# du nom de fichier. Rajouter ici le code approprié
fi
if [ "$t" == XXX ]; then
generate_XXX "$file" files2edit || r=$?
else
die "XXX: template invalide: $t"
fi
case "$t" in
XXX) generate_XXX "$file" files2edit || r=$?;;
*) die "$NAME: template invalide: $t";;
esac
done
if [ -n "$edit" -a "${#files2edit[*]}" -gt 0 ]; then

View File

@ -219,11 +219,10 @@ for file in "$@"; do
# du nom de fichier. Rajouter ici le code approprié
fi
if [ "$t" == shell ]; then
generate_shell "$file" files2edit || r=$?
else
die "shell: template invalide: $t"
fi
case "$t" in
shell|sh) generate_shell "$file" files2edit || r=$?;;
*) die "$NAME: template invalide: $t";;
esac
done
if [ -n "$edit" -a "${#files2edit[*]}" -gt 0 ]; then

View File

@ -36,7 +36,9 @@ TEMPLATES=(
jdp:javadoc-package
ctp:cakephp-ctp
js:javascript
j:java
properties:javaproperties jprops:javaproperties props:javaproperties
wc:wosrccomp
)
# Scripts à utiliser pour générer les templates

View File

@ -122,15 +122,12 @@ for file in "$@"; do
# du nom de fichier. Rajouter ici le code approprié.
fi
if [ "$t" == text ]; then
generate_text "$file" files2edit || r=$?
elif [ "$t" == conf ]; then
generate_conf "$file" files2edit || r=$?
elif [ "$t" == sql ]; then
generate_sql "$file" files2edit || r=$?
else
die "text: template invalide: $t"
fi
case "$t" in
text|txt|t) generate_text "$file" files2edit || r=$?;;
conf|c) generate_conf "$file" files2edit || r=$?;;
sql) generate_sql "$file" files2edit || r=$?;;
*) die "$NAME: template invalide: $t";;
esac
done
if [ -n "$edit" -a "${#files2edit[*]}" -gt 0 ]; then

View File

@ -339,23 +339,15 @@ for file in "$@"; do
esac
fi
if [ "$t" == html ]; then
generate_html "$file" files2edit || r=$?
elif [ "$t" == javadoc-package ]; then
generate_javadoc_package "$file" files2edit || r=$?
elif [ "$t" == javadoc-overview ]; then
generate_javadoc_overview "$file" files2edit || r=$?
elif [ "$t" == php ]; then
generate_php "$file" files2edit || r=$?
elif [ "$t" == cakephp-ctp ]; then
generate_cakephp_ctp "$file" files2edit || r=$?
elif [ "$t" == css ]; then
generate_css "$file" files2edit || r=$?
elif [ "$t" == javascript ]; then
generate_javascript "$file" files2edit || r=$?
else
die "www: template invalide: $t"
fi
case "$t" in
html|htm) generate_html "$file" files2edit || r=$?;;
javadoc-package|jdp) generate_javadoc_package "$file" files2edit || r=$?;;
jadadoc-overview|jdo) generate_javadoc_overview "$file" files2edit || r=$?;;
php|phps) generate_php "$file" files2edit || r=$?;;
cakephp-ctp|ctp) generate_cakephp_ctp "$file" files2edit || r=$?;;
css) generate_css "$file" files2edit || r=$?;;
javascript|js) generate_javascript "$file" files2edit || r=$?;;
*) die "$NAME: template invalide: $t";;
done
if [ -n "$edit" -a "${#files2edit[*]}" -gt 0 ]; then