This commit is contained in:
Jephté Clain 2013-10-31 14:58:03 +04:00
parent 2c64e083d4
commit d556b033e9
1 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,7 @@ function generate_css() {
estep "$(ppath "$file")"
echo >"$file" "/* -*- coding: $encoding ${mode:+mode: $mode }-*- vim:sw=4:sts=4:et:ai:si:sta:fenc=$encoding
*/@CHARSET $encoding;"
[ -n "$2" ] && array_add "$2" "$file"
return 0
}
@ -278,6 +279,7 @@ function generate_javascript() {
estep "$(ppath "$file")"
echo >"$file" "/* -*- coding: $encoding ${mode:+mode: $mode }-*- vim:sw=4:sts=4:et:ai:si:sta:fenc=$encoding
*/"
[ -n "$2" ] && array_add "$2" "$file"
return 0
}
@ -348,6 +350,7 @@ for file in "$@"; do
css) generate_css "$file" files2edit || r=$?;;
javascript|js) generate_javascript "$file" files2edit || r=$?;;
*) die "$NAME: template invalide: $t";;
esac
done
if [ -n "$edit" -a "${#files2edit[*]}" -gt 0 ]; then