aat

git mirror of https://ccx.te2000.cz/bzr/aat
git clone https://ccx.te2000.cz/git/aat
Log | Files | Refs | README

commit 02f124b476873b8466cb873e790d01343296bdcd
parent e55b0ac8ac206b514a97a73da05d42a34eee0300
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Tue, 29 Oct 2013 09:18:37 +0100

include query postproc in aat script, fix missing quote character
Diffstat:
Mbin/aat | 4++--
Mbin/query.awk | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/aat b/bin/aat @@ -1,7 +1,7 @@ #!/bin/sh : ${AWK:=awk} -: ${SED:=awk} +: ${SED:=sed} DIR="$(dirname "$0")" TEMPLATE="$1" shift -$AWK -f "$DIR/aat.awk" "$TEMPLATE" | sed -f "$DIR/aat_macros.sed" | awk -f /dev/stdin "$@" +$AWK -f "$DIR/aat.awk" "$TEMPLATE" | $SED -f "$DIR/aat_macros.sed" | $AWK -f "$DIR/query.awk" | awk -f /dev/stdin "$@" diff --git a/bin/query.awk b/bin/query.awk @@ -71,6 +71,7 @@ function parse_line(line) { if(match(line, /^"/)) { line = substr(line, 2) in_string = 1 + out("\"") } else { if(DEBUG) printf "q: →%s← →%s←\n", last_out, line >"/dev/stderr" if(match(last_out, /[\n\t([ ]$/) && match(line, /^<([a-zA-Z0-9._]|'[^']*')*>/)) {