From d62d0a2e452e9ed1ae74cc20c01488543cda8ef9 Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Wed, 6 Jul 2016 20:23:12 +0900 Subject: [PATCH] check-po.awk: fix awk invocation The awk utility has been moved to /usr/bin and the script relies on features present in gawk but not in mawk. --- tools/README | 8 +++++--- tools/check-po.awk | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/README b/tools/README index 6002113a3..10d0d9599 100644 --- a/tools/README +++ b/tools/README @@ -68,7 +68,9 @@ Maybe useful for SANE developers: check-po.awk: Print untranslated and fuzzy messages and their line numbers in the source code and po file. Example: - cd po/ ; ../tools/check-po.awk sane-backends.de.po - You may need to adjust the path of awk in the first line of the - script. More documentation is in the script itself. + tools/check-po.awk po/de.po + You may need to adjust the path of gawk in the first line of the + script. Alternatively, run it via gawk's -f option, like so: + gawk -f tools/check-po.awk po/de.po + More documentation is in the script itself. diff --git a/tools/check-po.awk b/tools/check-po.awk index 25e072878..09e4d1528 100755 --- a/tools/check-po.awk +++ b/tools/check-po.awk @@ -1,4 +1,4 @@ -#!/bin/awk -f +#!/usr/bin/gawk -f # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as