diff options
author | 2003-10-24 06:51:47 +0000 | |
---|---|---|
committer | 2003-10-24 06:51:47 +0000 | |
commit | 8d1cef9031266cf14d82811837cee2e406524ce8 (patch) | |
tree | a2e8d596feb5edd52c95013c164e478796939023 /app-text/xmlto/files | |
parent | Initial commit (diff) | |
download | gentoo-2-8d1cef9031266cf14d82811837cee2e406524ce8.tar.gz gentoo-2-8d1cef9031266cf14d82811837cee2e406524ce8.tar.bz2 gentoo-2-8d1cef9031266cf14d82811837cee2e406524ce8.zip |
added head-fix.patch
Diffstat (limited to 'app-text/xmlto/files')
-rw-r--r-- | app-text/xmlto/files/xmlto-0.0.15-head-fix.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-text/xmlto/files/xmlto-0.0.15-head-fix.patch b/app-text/xmlto/files/xmlto-0.0.15-head-fix.patch new file mode 100644 index 000000000000..b834184a6b8a --- /dev/null +++ b/app-text/xmlto/files/xmlto-0.0.15-head-fix.patch @@ -0,0 +1,20 @@ +--- xmlto.in.orig 2003-10-24 14:25:44.644458792 +0800 ++++ xmlto.in 2003-10-24 14:26:03.218635088 +0800 +@@ -97,7 +97,7 @@ + if [ -x /usr/bin/locale ] + then + # For paper sizes we know about, specify them. +- h=$(locale LC_PAPER 2>/dev/null | head -1) ++ h=$(locale LC_PAPER 2>/dev/null | head -n 1) + if [ "$h" = "297" ] + then + papertype=A4 +@@ -248,7 +248,7 @@ + fi + + # Decide what source format this is. Default to DocBook. +-rootel=$(head -2 "$INPUT_FILE" | \ ++rootel=$(head -n 2 "$INPUT_FILE" | \ + sed -e 's/^<?[^?>]*?>//g' -e 's/^<![^>]*>//g' -e 's/^<\([^ ]*\).*$/\1/') + case $(echo $rootel) in + fo:root) |