From: Libor Peltan Date: Wed, 9 Apr 2025 08:14:17 +0000 (+0200) Subject: scripts: enable calling update_parser from anywhere X-Git-Tag: v3.5.0~118^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3619eefdbb856f5e103ae55a71bcafabe682c56b;p=thirdparty%2Fknot-dns.git scripts: enable calling update_parser from anywhere --- diff --git a/scripts/update_parser.sh b/scripts/update_parser.sh index 98d6506817..773df06f20 100755 --- a/scripts/update_parser.sh +++ b/scripts/update_parser.sh @@ -9,6 +9,8 @@ IN="./scanner.rl" OUT_T0="./scanner.c.t0" OUT_G2="./scanner.c.g2" +pushd $(dirname "$0") + pushd ../src/libzscanner/ # Generate slower/small zone parser. @@ -51,3 +53,5 @@ sed -i '/static\ const\ int\ yparser_/d' $OUT_Y sed -i 's/\s*$//g' $OUT_Y popd + +popd