From 3c5dc267d6509125015de5f39c1b889e2d548ca0 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 2 Apr 2012 13:06:12 +0000 Subject: xdvik: Better awk script (again) git-svn-id: svn://tug.org/texlive/trunk@25827 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/xdvik/mksedscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Build/source/texk/xdvik/mksedscript b/Build/source/texk/xdvik/mksedscript index b8f6ae78a15..0acc0ce12b6 100755 --- a/Build/source/texk/xdvik/mksedscript +++ b/Build/source/texk/xdvik/mksedscript @@ -43,9 +43,10 @@ done # Get arguments from c-auto.h -eval "`awk '/^#define/ { printf "mk_%s=%s", $2, $3 - for (i = 4; i <= NF; i++) printf " %s", $i - print "" }' c-auto.h`" +# Skip all problematic #define's +# such as: #define ICONV_CHAR_PPTR_TYPE char ** +# or: #define PACKAGE_STRING "xdvik 22.85" +eval "`awk '/^#define/ { if (NF == 3) print "mk_"$2"="$3 }' c-auto.h`" # eval "`cat c-auto.h \ # | grep '^[ ]*#[ ]*define[ ]' \ -- cgit v1.2.3