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.

52 lines
1.9 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/mnemoc/ucspi-unix/head-useage.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 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. --- ./Makefile.orig 2004-09-07 05:16:38.584125576 +0200
  20. +++ ./Makefile 2004-09-07 05:17:05.934967616 +0200
  21. @@ -18,18 +18,18 @@
  22. ( echo '#!/bin/sh'; \
  23. echo 'source=$$1; shift'; \
  24. echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
  25. - echo exec `head -1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \
  26. + echo exec `head -n 1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \
  27. ) >compile
  28. chmod 755 compile
  29. conf_bin.c: conf-bin
  30. - head -1 conf-bin | \
  31. + head -n 1 conf-bin | \
  32. sed -e 's/"/\\"/g' \
  33. -e 's/^/const char conf_bin[] = "/' \
  34. -e 's/$$/";/' >conf_bin.c
  35. conf_man.c: conf-man
  36. - head -1 conf-man | \
  37. + head -n 1 conf-man | \
  38. sed -e 's/"/\\"/g' \
  39. -e 's/^/const char conf_man[] = "/' \
  40. -e 's/$$/";/' >conf_man.c
  41. @@ -55,7 +55,7 @@
  42. load: conf-ld
  43. ( echo '#!/bin/sh';\
  44. echo 'main="$$1"; shift';\
  45. - echo exec `head -1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
  46. + echo exec `head -n 1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
  47. ) >load
  48. chmod 755 load