summaryrefslogtreecommitdiff
blob: b834184a6b8ab53319b2a808166d8b95341e4d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)