mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

217 lines
9.3 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/stf/brlcad/head-tail.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -dur brlcad-7.6.2/aclocal.m4 brlcad-7.6.2-p/aclocal.m4
  20. --- brlcad-7.6.2/aclocal.m4 2005-09-29 08:47:16.000000000 +0200
  21. +++ brlcad-7.6.2-p/aclocal.m4 2005-10-28 02:14:23.000000000 +0200
  22. @@ -5056,7 +5056,7 @@
  23. lt_cv_file_magic_cmd='/usr/bin/file -L'
  24. case "$host_os" in
  25. rhapsody* | darwin1.[[012]])
  26. - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  27. + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -n1`
  28. ;;
  29. *) # Darwin 1.3 on
  30. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  31. diff -dur brlcad-7.6.2/bench/benchmark brlcad-7.6.2-p/bench/benchmark
  32. --- brlcad-7.6.2/bench/benchmark 2005-09-29 08:50:43.000000000 +0200
  33. +++ brlcad-7.6.2-p/bench/benchmark 2005-10-28 02:17:04.000000000 +0200
  34. @@ -833,13 +833,13 @@
  35. echo " summary ... performance results summary, 2 lines per run"
  36. if test $perf_ret != 0 ; then
  37. - tail -1 summary
  38. + tail -n1 summary
  39. exit $perf_ret
  40. else
  41. echo
  42. - tail -2 summary
  43. + tail -n2 summary
  44. fi
  45. -vgr="`tail -1 summary | awk '{print int($9+0.5)}'`"
  46. +vgr="`tail -n1 summary | awk '{print int($9+0.5)}'`"
  47. if test ! "x$vgr" = "x" ; then
  48. echo
  49. echo "#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#"
  50. diff -dur brlcad-7.6.2/bench/run.sh brlcad-7.6.2-p/bench/run.sh
  51. --- brlcad-7.6.2/bench/run.sh 2005-09-29 08:37:35.000000000 +0200
  52. +++ brlcad-7.6.2-p/bench/run.sh 2005-10-28 02:16:02.000000000 +0200
  53. @@ -833,13 +833,13 @@
  54. echo " summary ... performance results summary, 2 lines per run"
  55. if test $perf_ret != 0 ; then
  56. - tail -1 summary
  57. + tail -n1 summary
  58. exit $perf_ret
  59. else
  60. echo
  61. - tail -2 summary
  62. + tail -n2 summary
  63. fi
  64. -vgr="`tail -1 summary | awk '{print int($9+0.5)}'`"
  65. +vgr="`tail -n1 summary | awk '{print int($9+0.5)}'`"
  66. if test ! "x$vgr" = "x" ; then
  67. echo
  68. echo "#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#"
  69. diff -dur brlcad-7.6.2/configure brlcad-7.6.2-p/configure
  70. --- brlcad-7.6.2/configure 2005-09-29 08:47:39.000000000 +0200
  71. +++ brlcad-7.6.2-p/configure 2005-10-29 02:18:27.000000000 +0200
  72. @@ -11087,7 +11107,7 @@
  73. lt_cv_file_magic_cmd='/usr/bin/file -L'
  74. case "$host_os" in
  75. rhapsody* | darwin1.[012])
  76. - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  77. + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -n1`
  78. ;;
  79. *) # Darwin 1.3 on
  80. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  81. diff -dur brlcad-7.6.2/doc/html/manuals/Anim_Tutorial/chapt2.html brlcad-7.6.2-p/doc/html/manuals/Anim_Tutorial/chapt2.html
  82. --- brlcad-7.6.2/doc/html/manuals/Anim_Tutorial/chapt2.html 2005-09-29 08:37:35.000000000 +0200
  83. +++ brlcad-7.6.2-p/doc/html/manuals/Anim_Tutorial/chapt2.html 2005-10-28 02:13:53.000000000 +0200
  84. @@ -300,7 +300,7 @@
  85. illustration purposes
  86. only the commands for the first two frames are shown here.
  87. <PRE>
  88. -% <B>head -12 moss.rtanim</B>
  89. +% <B>head -n12 moss.rtanim</B>
  90. viewsize 200;
  91. eye_pt 90.7107 70.7107 0;
  92. orientation 0.270598 0.653281 0.653281 0.270598;
  93. diff -dur brlcad-7.6.2/doc/html/manuals/mged/animmate/object_tut.html brlcad-7.6.2-p/doc/html/manuals/mged/animmate/object_tut.html
  94. --- brlcad-7.6.2/doc/html/manuals/mged/animmate/object_tut.html 2005-09-29 08:37:35.000000000 +0200
  95. +++ brlcad-7.6.2-p/doc/html/manuals/mged/animmate/object_tut.html 2005-10-28 02:13:40.000000000 +0200
  96. @@ -120,7 +120,7 @@
  97. From a shell window, take a look at foo.script. It should look something
  98. like the following:
  99. <pre>
  100. -%> <b>head -20 foo.script</b>
  101. +%> <b>head -n20 foo.script</b>
  102. start 0;
  103. clean;
  104. anim all.g/cone.r matrix lmul
  105. diff -dur brlcad-7.6.2/doc/html/manuals/mged/animmate/rt_tut.html brlcad-7.6.2-p/doc/html/manuals/mged/animmate/rt_tut.html
  106. --- brlcad-7.6.2/doc/html/manuals/mged/animmate/rt_tut.html 2005-09-29 08:37:35.000000000 +0200
  107. +++ brlcad-7.6.2-p/doc/html/manuals/mged/animmate/rt_tut.html 2005-10-28 02:13:25.000000000 +0200
  108. @@ -65,7 +65,7 @@
  109. scriptsort also inserts a call to the shell script
  110. <var>end_of_frame.sh</var> after each frame of the animation.
  111. <pre>
  112. -%> <b>head -10 anim.script</b>
  113. +%> <b>head -n10 anim.script</b>
  114. start 0;clean ;
  115. anim all.g/cone.r matrix lmul -0.268148 -0.841061 -0.469801 17.995962 0.889157 -0.403767 0.215341 -112.596747 -0.370805 -0.359984 0.856105 -3.321956 0.000000 0.000000 0.000000 1.000000 ;
  116. end;
  117. @@ -77,7 +77,7 @@
  118. end;
  119. start 3;clean ;
  120. %> <b>scriptsort -f < anim.script > anim_and_shell.script</b>
  121. -%> <b>head -10 anim_and_shell.script</b>
  122. +%> <b>head -n10 anim_and_shell.script</b>
  123. start 0;clean ;
  124. anim all.g/cone.r matrix lmul -0.268148 -0.841061 -0.469801 17.995962 0.889157 -0.403767 0.215341 -112.596747 -0.370805 -0.359984 0.856105 -3.321956 0.000000 0.000000 0.000000 1.000000 ;
  125. end;
  126. diff -dur brlcad-7.6.2/sh/header.sh brlcad-7.6.2-p/sh/header.sh
  127. --- brlcad-7.6.2/sh/header.sh 2005-09-29 08:37:36.000000000 +0200
  128. +++ brlcad-7.6.2-p/sh/header.sh 2005-10-28 02:12:23.000000000 +0200
  129. @@ -240,9 +240,9 @@
  130. ###################################
  131. copyright=""
  132. currentyear="`date | awk '{print $6}'`"
  133. -copyrightline="`grep -i copyright $FILE | grep -v -i notice | grep -v -i '\.SH' | head -1`"
  134. +copyrightline="`grep -i copyright $FILE | grep -v -i notice | grep -v -i '\.SH' | head -n1`"
  135. if [ "x$copyrightline" = "x" ] ; then
  136. - copyrightline="`grep -i copyright $FILE | grep -v -i united | grep -v -i '\.SH' | head -1`"
  137. + copyrightline="`grep -i copyright $FILE | grep -v -i united | grep -v -i '\.SH' | head -n1`"
  138. fi
  139. if [ "x$copyrightline" = "x" ] ; then
  140. startyear="$currentyear"
  141. @@ -392,13 +392,13 @@
  142. ###################################
  143. # see if the license block exists #
  144. ###################################
  145. -foundtitle="`head -5 $FILE | grep "$title" | wc | awk '{print $1}'`"
  146. +foundtitle="`head -n5 $FILE | grep "$title" | wc | awk '{print $1}'`"
  147. prepend=no
  148. if [ "x$foundtitle" = "x0" ] ; then
  149. prepend=yes
  150. else
  151. - licline="`echo "$block" | tail -7 | head -1`"
  152. - foundfileheader="`head -50 $FILE | grep "$licline" | wc | awk '{print $1}'`"
  153. + licline="`echo "$block" | tail -n7 | head -n1`"
  154. + foundfileheader="`head -n50 $FILE | grep "$licline" | wc | awk '{print $1}'`"
  155. if [ "x$foundfileheader" = "x0" ] ; then
  156. prepend=yes
  157. echo "$FILE already has a title"
  158. @@ -424,9 +424,9 @@
  159. closeit=0
  160. skip=1
  161. -lineone="`cat ${FILE}.backup | head -1`"
  162. -linetwo="`cat ${FILE}.backup | head -2 | tail -1`"
  163. -linethree="`cat ${FILE}.backup | head -3 | tail -1`"
  164. +lineone="`cat ${FILE}.backup | head -n1`"
  165. +linetwo="`cat ${FILE}.backup | head -n2 | tail -n1`"
  166. +linethree="`cat ${FILE}.backup | head -n3 | tail -n1`"
  167. case "$lineone" in
  168. "/*"*${title})
  169. echo "Found C comment start with file header"
  170. diff -dur brlcad-7.6.2/sh/make_dmg.sh brlcad-7.6.2-p/sh/make_dmg.sh
  171. --- brlcad-7.6.2/sh/make_dmg.sh 2005-09-29 08:37:36.000000000 +0200
  172. +++ brlcad-7.6.2-p/sh/make_dmg.sh 2005-10-28 02:11:45.000000000 +0200
  173. @@ -153,7 +153,7 @@
  174. exit 1
  175. fi
  176. -hdidDisk=`hdid -nomount "${DMG}.sparseimage" | head -1 | grep '/dev/disk[0-9]*' | awk '{print $1}'`
  177. +hdidDisk=`hdid -nomount "${DMG}.sparseimage" | head -n1 | grep '/dev/disk[0-9]*' | awk '{print $1}'`
  178. if [ ! "x$?" = "x0" ] ; then
  179. echo "ERROR: unable to successfully get the hdid device name"
  180. exit 1
  181. @@ -181,7 +181,7 @@
  182. exit 1
  183. fi
  184. -hdidMountedDisk=`hdid ${DMG}.sparseimage | head -1 | grep '/dev/disk[0-9]*' | awk '{print $1}'`
  185. +hdidMountedDisk=`hdid ${DMG}.sparseimage | head -n1 | grep '/dev/disk[0-9]*' | awk '{print $1}'`
  186. if [ ! "x$?" = "x0" ] ; then
  187. echo "ERROR: unable to successfully get the mounted hdid device name"
  188. exit 1
  189. diff -dur brlcad-7.6.2/sh/vers.sh brlcad-7.6.2-p/sh/vers.sh
  190. --- brlcad-7.6.2/sh/vers.sh 2005-09-29 08:37:36.000000000 +0200
  191. +++ brlcad-7.6.2-p/sh/vers.sh 2005-10-28 02:16:27.000000000 +0200
  192. @@ -68,7 +68,7 @@
  193. # Obtain RELEASE number
  194. if test -r $path_to_vers_sh/../configure.ac ; then
  195. for i in 1 2 3 4 ; do
  196. - version_script="`grep VERSION $path_to_vers_sh/../configure.ac | grep -v SUBST | head -$i | tail -1`"
  197. + version_script="`grep VERSION $path_to_vers_sh/../configure.ac | grep -v SUBST | head -n$i | tail -n1`"
  198. eval "$version_script"
  199. done
  200. if test ! "x$BRLCAD_VERSION" = "x" ; then
  201. --- brlcad-7.6.2/sh/header.sh~ 2005-10-29 03:46:56.000000000 +0200
  202. +++ brlcad-7.6.2/sh/header.sh 2005-10-29 03:52:48.000000000 +0200
  203. @@ -624,7 +624,7 @@
  204. echo "${block}" >> $FILE
  205. fi
  206. -tail +${skip} ${FILE}.backup >> $FILE
  207. +tail -n+${skip} ${FILE}.backup >> $FILE
  208. exit 0