diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-04-02 13:06:12 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-04-02 13:06:12 +0000 |
commit | 3c5dc267d6509125015de5f39c1b889e2d548ca0 (patch) | |
tree | a9cd0a7e3a026b277c3f1f64e03dc71edfa872eb | |
parent | 17cd058940755c16a836a55f143887c6a055a717 (diff) |
xdvik: Better awk script (again)
git-svn-id: svn://tug.org/texlive/trunk@25827 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/texk/xdvik/mksedscript | 7 |
1 files 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[ ]' \ |