OpenSDE Packages Database (without history before r20070)
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.

67 lines
2.0 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../mdmh/head_-n.patch
  5. # Copyright (C) 2005 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- ./Makefile.orig 2005-12-16 14:43:56.000000000 -0300
  17. +++ ./Makefile 2005-12-16 14:44:18.000000000 -0300
  18. @@ -11,8 +11,8 @@
  19. mdbiff: \
  20. warn-auto.sh mdbiff.sh conf-home conf-play
  21. cat warn-auto.sh mdbiff.sh \
  22. - | sed s}HOME}"`head -1 conf-home`"}g \
  23. - | sed s}PLAY}"`head -1 conf-play`"}g \
  24. + | sed s}HOME}"`head -n 1 conf-home`"}g \
  25. + | sed s}PLAY}"`head -n 1 conf-play`"}g \
  26. > mdbiff
  27. chmod 755 mdbiff
  28. @@ -20,7 +20,7 @@
  29. warn-auto.sh conf-ld
  30. ( cat warn-auto.sh; \
  31. echo 'main="$$1"; shift'; \
  32. - echo exec "`head -1 conf-ld`" \
  33. + echo exec "`head -n 1 conf-ld`" \
  34. '-o "$$main" "$$main".o $${1+"$$@"}' \
  35. ) > load
  36. chmod 755 load
  37. @@ -34,7 +34,7 @@
  38. compile: \
  39. warn-auto.sh conf-cc
  40. ( cat warn-auto.sh; \
  41. - echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \
  42. + echo exec "`head -n 1 conf-cc`" '-c $${1+"$$@"}' \
  43. ) > compile
  44. chmod 755 compile
  45. @@ -57,7 +57,7 @@
  46. auto_home.c: \
  47. auto-str conf-home
  48. - ./auto-str auto_home `head -1 conf-home` > auto_home.c
  49. + ./auto-str auto_home `head -n 1 conf-home` > auto_home.c
  50. auto-str: \
  51. load auto-str.o buffer.a error.a str.a
  52. @@ -91,8 +91,8 @@
  53. systype: \
  54. find-systype.sh conf-cc conf-ld trycpp.c x86cpuid.c
  55. ( cat warn-auto.sh; \
  56. - echo CC=\'`head -1 conf-cc`\'; \
  57. - echo LD=\'`head -1 conf-ld`\'; \
  58. + echo CC=\'`head -n 1 conf-cc`\'; \
  59. + echo LD=\'`head -n 1 conf-ld`\'; \
  60. cat find-systype.sh; \
  61. ) | sh > systype