Submitted By: Uwe Düffert (lfs at uwe-dueffert dot de)
Date: 2004-05-16
Initial Package Version: 0.9.23
Origin: self-created, http://www.uwe-dueffert.de/lfs/ownpatches/xine-ui-0.9.23-posix-1.patch
Upstream Status: not reported
Description: use posix head and tail syntax
 
diff -Naur xine-ui-0.99.3.orig/configure xine-ui-0.99.3/configure
--- xine-ui-0.99.3.orig/configure	2004-12-30 12:10:15.343280072 +0100
+++ xine-ui-0.99.3/configure	2004-12-30 12:16:33.526787440 +0100
@@ -29739,7 +29739,7 @@
 fi
 
 
-BUILD_CC="`$CC -v 2>&1 | tail -1`"
+BUILD_CC="`$CC -v 2>&1 | tail -n 1`"
 BUILD_OS="`uname -s -r -m`"
 BUILD_DATE="`date \"+%a %d %b %Y %T\"`"
 
diff -Naur xine-ui-0.99.3.orig/configure.ac xine-ui-0.99.3/configure.ac
--- xine-ui-0.99.3.orig/configure.ac	2004-12-30 12:10:15.345279768 +0100
+++ xine-ui-0.99.3/configure.ac	2004-12-30 12:16:45.444975600 +0100
@@ -589,7 +589,7 @@
 dnl
 dnl
 dnl
-BUILD_CC="`$CC -v 2>&1 | tail -1`"
+BUILD_CC="`$CC -v 2>&1 | tail -n 1`"
 BUILD_OS="`uname -s -r -m`"
 BUILD_DATE="`date \"+%a %d %b %Y %T\"`"
 AC_SUBST(BUILD_CC)
diff -Naur xine-ui-0.99.3.orig/misc/xine-bugreport xine-ui-0.99.3/misc/xine-bugreport
--- xine-ui-0.99.3.orig/misc/xine-bugreport	2004-12-30 12:10:15.312284784 +0100
+++ xine-ui-0.99.3/misc/xine-bugreport	2004-12-30 12:13:44.426494592 +0100
@@ -610,8 +610,8 @@
 	  fi
 	fi
     done
-    short=`head -1 <$tmpfile`
-    description="`tail +2 <$tmpfile`"
+    short=`head -n 1 <$tmpfile`
+    description="`tail -n +2 <$tmpfile`"
     rm $tmpfile
     if test -z "$short"; then
       echo "internal error: no message for $id" >&2
@@ -903,7 +903,7 @@
 if search -x xine "$PATH"; then
   xine_executable1=`echo "$found"|sort|uniq`
   if [ `echo "$xine_executable1" | wc -l` -gt 1 ]; then
-    xine_executable=`echo "$xine_executable1" | head -1`
+    xine_executable=`echo "$xine_executable1" | head -n 1`
     msg several-xine-in-path 1
   else
     xine_executable="$xine_executable1"
@@ -922,7 +922,7 @@
   xine_config=`echo "$found"|sort|uniq`
   if [ `echo "$xine_config" | wc -l` -gt 1 ]; then
     xine_configs="$xine_config"
-    xine_config=`echo "$xine_configs" | head -1`
+    xine_config=`echo "$xine_configs" | head -n 1`
     msg several-xine-config 1
   else
     msg xine-config-in-path 0
@@ -932,7 +932,7 @@
     xine_config="$found";
     if [ `echo "$xine_config" | wc -l` -gt 1 ]; then
       xine_configs="$xine_config"
-      xine_config=`echo "$xine_configs" | head -1`
+      xine_config=`echo "$xine_configs" | head -n 1`
       msg several-xine-config 1
     else
       msg xine-config-somewhere 0
@@ -1102,7 +1102,7 @@
 
     search -x hdparm "$PATH" || search -x bin/hdparm || search -x sbin/hdparm;
     if test -n "$found"; then
-      hdparm=`echo "$found"|head -1`
+      hdparm=`echo "$found"|head -n 1`
     fi
 
     case "$DVDROM" in
@@ -1145,8 +1145,8 @@
 # Xv extension
 search -x xvinfo "$PATH" || search -x bin/xvinfo;
 if test -n "$found"; then
-  xvinfo=`echo "$found"|head -1`
-  XVIDEO=`$xvinfo|head -1`
+  xvinfo=`echo "$found"|head -n 1`
+  XVIDEO=`$xvinfo|head -n 1`
   msg have-xv 0
   YUV=false
   YUY2=false
@@ -1387,7 +1387,7 @@
 echo "Subject: $subject"
 
 if search -x mail "$PATH" || search -x mailx "$PATH"; then
-  mailer=`echo "$found"|head -1`
+  mailer=`echo "$found"|head -n 1`
   echo "Alternatively, I could try to send the bug report for you, using"
   echo $mailer -s \""$subject"\"
   echo 'Please make sure to add the additional description before saying "yes"!' 
diff -Naur xine-ui-0.99.3.orig/misc/xine-check xine-ui-0.99.3/misc/xine-check
--- xine-ui-0.99.3.orig/misc/xine-check	2004-12-30 12:10:15.312284784 +0100
+++ xine-ui-0.99.3/misc/xine-check	2004-12-30 12:14:07.094048600 +0100
@@ -610,8 +610,8 @@
 	  fi
 	fi
     done
-    short=`head -1 <$tmpfile`
-    description="`tail +2 <$tmpfile`"
+    short=`head -n 1 <$tmpfile`
+    description="`tail -n +2 <$tmpfile`"
     rm $tmpfile
     if test -z "$short"; then
       echo "internal error: no message for $id" >&2
@@ -903,7 +903,7 @@
 if search -x xine "$PATH"; then
   xine_executable1=`echo "$found"|sort|uniq`
   if [ `echo "$xine_executable1" | wc -l` -gt 1 ]; then
-    xine_executable=`echo "$xine_executable1" | head -1`
+    xine_executable=`echo "$xine_executable1" | head -n 1`
     msg several-xine-in-path 1
   else
     xine_executable="$xine_executable1"
@@ -922,7 +922,7 @@
   xine_config=`echo "$found"|sort|uniq`
   if [ `echo "$xine_config" | wc -l` -gt 1 ]; then
     xine_configs="$xine_config"
-    xine_config=`echo "$xine_configs" | head -1`
+    xine_config=`echo "$xine_configs" | head -n 1`
     msg several-xine-config 1
   else
     msg xine-config-in-path 0
@@ -932,7 +932,7 @@
     xine_config="$found";
     if [ `echo "$xine_config" | wc -l` -gt 1 ]; then
       xine_configs="$xine_config"
-      xine_config=`echo "$xine_configs" | head -1`
+      xine_config=`echo "$xine_configs" | head -n 1`
       msg several-xine-config 1
     else
       msg xine-config-somewhere 0
@@ -1102,7 +1102,7 @@
 
     search -x hdparm "$PATH" || search -x bin/hdparm || search -x sbin/hdparm;
     if test -n "$found"; then
-      hdparm=`echo "$found"|head -1`
+      hdparm=`echo "$found"|head -n 1`
     fi
 
     case "$DVDROM" in
@@ -1145,8 +1145,8 @@
 # Xv extension
 search -x xvinfo "$PATH" || search -x bin/xvinfo;
 if test -n "$found"; then
-  xvinfo=`echo "$found"|head -1`
-  XVIDEO=`$xvinfo|head -1`
+  xvinfo=`echo "$found"|head -n 1`
+  XVIDEO=`$xvinfo|head -n 1`
   msg have-xv 0
   YUV=false
   YUY2=false
@@ -1387,7 +1387,7 @@
 echo "Subject: $subject"
 
 if search -x mail "$PATH" || search -x mailx "$PATH"; then
-  mailer=`echo "$found"|head -1`
+  mailer=`echo "$found"|head -n 1`
   echo "Alternatively, I could try to send the bug report for you, using"
   echo $mailer -s \""$subject"\"
   echo 'Please make sure to add the additional description before saying "yes"!' 
diff -Naur xine-ui-0.99.3.orig/misc/xine-check.sh.in xine-ui-0.99.3/misc/xine-check.sh.in
--- xine-ui-0.99.3.orig/misc/xine-check.sh.in	2004-12-30 12:10:15.313284632 +0100
+++ xine-ui-0.99.3/misc/xine-check.sh.in	2004-12-30 12:13:58.536349568 +0100
@@ -187,8 +187,8 @@
 	  fi
 	fi
     done
-    short=`head -1 <$tmpfile`
-    description="`tail +2 <$tmpfile`"
+    short=`head -n 1 <$tmpfile`
+    description="`tail -n +2 <$tmpfile`"
     rm $tmpfile
     if test -z "$short"; then
       echo "internal error: no message for $id" >&2
@@ -480,7 +480,7 @@
 if search -x xine "$PATH"; then
   xine_executable1=`echo "$found"|sort|uniq`
   if [ `echo "$xine_executable1" | wc -l` -gt 1 ]; then
-    xine_executable=`echo "$xine_executable1" | head -1`
+    xine_executable=`echo "$xine_executable1" | head -n 1`
     msg several-xine-in-path 1
   else
     xine_executable="$xine_executable1"
@@ -499,7 +499,7 @@
   xine_config=`echo "$found"|sort|uniq`
   if [ `echo "$xine_config" | wc -l` -gt 1 ]; then
     xine_configs="$xine_config"
-    xine_config=`echo "$xine_configs" | head -1`
+    xine_config=`echo "$xine_configs" | head -n 1`
     msg several-xine-config 1
   else
     msg xine-config-in-path 0
@@ -509,7 +509,7 @@
     xine_config="$found";
     if [ `echo "$xine_config" | wc -l` -gt 1 ]; then
       xine_configs="$xine_config"
-      xine_config=`echo "$xine_configs" | head -1`
+      xine_config=`echo "$xine_configs" | head -n 1`
       msg several-xine-config 1
     else
       msg xine-config-somewhere 0
@@ -679,7 +679,7 @@
 
     search -x hdparm "$PATH" || search -x bin/hdparm || search -x sbin/hdparm;
     if test -n "$found"; then
-      hdparm=`echo "$found"|head -1`
+      hdparm=`echo "$found"|head -n 1`
     fi
 
     case "$DVDROM" in
@@ -722,8 +722,8 @@
 # Xv extension
 search -x xvinfo "$PATH" || search -x bin/xvinfo;
 if test -n "$found"; then
-  xvinfo=`echo "$found"|head -1`
-  XVIDEO=`$xvinfo|head -1`
+  xvinfo=`echo "$found"|head -n 1`
+  XVIDEO=`$xvinfo|head -n 1`
   msg have-xv 0
   YUV=false
   YUY2=false
@@ -964,7 +964,7 @@
 echo "Subject: $subject"
 
 if search -x mail "$PATH" || search -x mailx "$PATH"; then
-  mailer=`echo "$found"|head -1`
+  mailer=`echo "$found"|head -n 1`
   echo "Alternatively, I could try to send the bug report for you, using"
   echo $mailer -s \""$subject"\"
   echo 'Please make sure to add the additional description before saying "yes"!' 
diff -Naur xine-ui-0.99.3.orig/po/POTFILES.in xine-ui-0.99.3/po/POTFILES.in
--- xine-ui-0.99.3.orig/po/POTFILES.in	2004-12-30 12:10:15.316284176 +0100
+++ xine-ui-0.99.3/po/POTFILES.in	2004-12-30 12:17:30.557117512 +0100
@@ -1,5 +1,5 @@
 # For updating this file, look at the result of:
-#  $ head -3 po/POTFILES.in > /tmp/POTFILES.in && grep -l '[^A-Za-z_]_(' src/xitk/*.[chy] | grep -v src/xitk/session_ctrl.c >> /tmp/POTFILES.in && cp /tmp/POTFILES.in po/
+#  $ head -n 3 po/POTFILES.in > /tmp/POTFILES.in && grep -l '[^A-Za-z_]_(' src/xitk/*.[chy] | grep -v src/xitk/session_ctrl.c >> /tmp/POTFILES.in && cp /tmp/POTFILES.in po/
 
 src/xitk/actions.c
 src/xitk/config_wrapper.c
diff -Naur xine-ui-0.99.3.orig/src/xitk/xine-toolkit/po/POTFILES.in xine-ui-0.99.3/src/xitk/xine-toolkit/po/POTFILES.in
--- xine-ui-0.99.3.orig/src/xitk/xine-toolkit/po/POTFILES.in	2004-12-30 12:10:15.322283264 +0100
+++ xine-ui-0.99.3/src/xitk/xine-toolkit/po/POTFILES.in	2004-12-30 12:17:52.244820480 +0100
@@ -1,5 +1,5 @@
 # For updating this file, look at the result of:
-#  $ head -3 src/xitk/xine-toolkit/po/POTFILES.in > /tmp/POTFILES.in && grep -l '[^A-Za-z_]_(' src/xitk/xine-toolkit/*.[chy] >> /tmp/POTFILES.in && cp /tmp/POTFILES.in src/xitk/xine-toolkit/po/
+#  $ head -n 3 src/xitk/xine-toolkit/po/POTFILES.in > /tmp/POTFILES.in && grep -l '[^A-Za-z_]_(' src/xitk/xine-toolkit/*.[chy] >> /tmp/POTFILES.in && cp /tmp/POTFILES.in src/xitk/xine-toolkit/po/
 
 src/xitk/xine-toolkit/mrlbrowser.c
 src/xitk/xine-toolkit/test.c

