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.

48 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ucspi-unix/head_n.patch
  5. # Copyright (C) 2004 - 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./Makefile.orig 2004-11-24 23:21:55.000000000 -0300
  17. +++ ./Makefile 2004-11-24 23:22:33.000000000 -0300
  18. @@ -18,18 +18,18 @@
  19. ( echo '#!/bin/sh'; \
  20. echo 'source=$$1; shift'; \
  21. echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
  22. - echo exec `head -1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \
  23. + echo exec `head -n 1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \
  24. ) >compile
  25. chmod 755 compile
  26. conf_bin.c: conf-bin
  27. - head -1 conf-bin | \
  28. + head -n 1 conf-bin | \
  29. sed -e 's/"/\\"/g' \
  30. -e 's/^/const char conf_bin[] = "/' \
  31. -e 's/$$/";/' >conf_bin.c
  32. conf_man.c: conf-man
  33. - head -1 conf-man | \
  34. + head -n 1 conf-man | \
  35. sed -e 's/"/\\"/g' \
  36. -e 's/^/const char conf_man[] = "/' \
  37. -e 's/$$/";/' >conf_man.c
  38. @@ -55,7 +55,7 @@
  39. load: conf-ld
  40. ( echo '#!/bin/sh';\
  41. echo 'main="$$1"; shift';\
  42. - echo exec `head -1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
  43. + echo exec `head -n 1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\
  44. ) >load
  45. chmod 755 load