about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xvienna4
1 files changed, 2 insertions, 2 deletions
diff --git a/vienna b/vienna index 9080571..a624538 100755 --- a/vienna +++ b/vienna
@@ -230,7 +230,7 @@ expand() { # expand TEMPLATE... < INPUT
230 end="expand_:_${count:=0}_:_end" 230 end="expand_:_${count:=0}_:_end"
231 eval "$( 231 eval "$(
232 echo "cat<<$end" 232 echo "cat<<$end"
233 shellfix "$@" | sed 's/^-->$//' 233 shellfix "$@"
234 echo 234 echo
235 echo "$end" 235 echo "$end"
236 )" && count=$((count + 1)) 236 )" && count=$((count + 1))
@@ -263,7 +263,7 @@ meta() { # meta FIELD [FILE] < INPUT
263 file="${2:-$FILE}" 263 file="${2:-$FILE}"
264 metafile="${TMPD:=.}/${file}.meta" 264 metafile="${TMPD:=.}/${file}.meta"
265 test -f "$metafile" || 265 test -f "$metafile" ||
266 sed '/<!--/!q;/<!--/n;/-->/q' >"$metafile" 266 sed -n '/<!--/!q;/<!--/n;p;/-->/q' >"$metafile"
267 sed -n "s/^[ \t]*$field:[ \t]*//p" <"$metafile" 267 sed -n "s/^[ \t]*$field:[ \t]*//p" <"$metafile"
268} 268}
269 269