cosmetic
This commit is contained in:
parent
cfdce28833
commit
2c64e083d4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue