diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-04-02 11:26:50 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-04-02 11:26:50 +0000 |
commit | 17cd058940755c16a836a55f143887c6a055a717 (patch) | |
tree | 4a28d54b2f4fdd8ec6d667f5158983ea50a49031 /Build | |
parent | e1cdf823cfae8ba9f15af504f0c751d9013d9984 (diff) |
xdvik: Better awk script
git-svn-id: svn://tug.org/texlive/trunk@25826 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-x | Build/source/texk/xdvik/mksedscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/texk/xdvik/mksedscript b/Build/source/texk/xdvik/mksedscript index 21988a34c21..b8f6ae78a15 100755 --- a/Build/source/texk/xdvik/mksedscript +++ b/Build/source/texk/xdvik/mksedscript @@ -43,7 +43,9 @@ done # Get arguments from c-auto.h -eval "`awk '/^#define/ { print "mk_"$2"="$3$4$5$6$7 }' 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`" # eval "`cat c-auto.h \ # | grep '^[ ]*#[ ]*define[ ]' \ |