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