From 209763c0b149bdcea945ae84e7e7add4a145aced Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 16 Apr 2015 14:30:23 +0200 Subject: [PATCH] generatepot-rst: Fix to work with mawk Ubuntu uses mawk by default which does not know about the regex feature "{32}". Use "+" instead for a more portable regex. Change-Id: I9fd52437eb332dedc9bf977173beda93f984843f --- tools/generatepot-rst.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generatepot-rst.sh b/tools/generatepot-rst.sh index 119a8f10e8..f6ea0186ec 100755 --- a/tools/generatepot-rst.sh +++ b/tools/generatepot-rst.sh @@ -41,7 +41,7 @@ sphinx-build $OPTS -b gettext doc/$DOCNAME/source/ doc/$DOCNAME/source/locale/ # doc/$DOCNAME/source/locale will only add the single pot file. # Remove UUIDs, those are not necessary and change too often msgcat --sort-output doc/$DOCNAME/source/locale/*.pot | \ - awk '$0 !~ /^\# [a-z0-9]{32}$/' > doc/$DOCNAME/source/$DOCNAME.pot + awk '$0 !~ /^\# [a-z0-9]+$/' > doc/$DOCNAME/source/$DOCNAME.pot rm doc/$DOCNAME/source/locale/*.pot rm -rf doc/$DOCNAME/source/locale/.doctrees/ mv doc/$DOCNAME/source/$DOCNAME.pot doc/$DOCNAME/source/locale/$DOCNAME.pot