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.

64 lines
2.2 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/twoftpd/head_n.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 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-05-25 17:23:18.000000000 -0400
  20. +++ ./Makefile 2004-05-25 17:26:50.000000000 -0400
  21. @@ -24,11 +24,11 @@
  22. rm -f `cat AUTOFILES`
  23. compile: conf-cc conf-bgincs
  24. - ( bgincs=`head -1 conf-bgincs`; \
  25. + ( bgincs=`head -n 1 conf-bgincs`; \
  26. echo '#!/bin/sh'; \
  27. echo 'source=$$1; shift'; \
  28. echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
  29. - echo exec `head -1 conf-cc` -I. "-I'$${bgincs}'" '-o $${base}.o -c $$source $${1+"$$@"}'; \
  30. + echo exec `head -n 1 conf-cc` -I. "-I'$${bgincs}'" '-o $${base}.o -c $$source $${1+"$$@"}'; \
  31. ) >compile
  32. chmod 755 compile
  33. @@ -36,13 +36,13 @@
  34. ./compile conf.c
  35. conf_bin.c: conf-bin
  36. - head -1 conf-bin | \
  37. + head -n 1 conf-bin | \
  38. sed -e 's/"/\\"/g' \
  39. -e 's/^/const char conf_bin[] = "/' \
  40. -e 's/$$/";/' >conf_bin.c
  41. conf_man.c: conf-man
  42. - head -1 conf-man | \
  43. + head -n 1 conf-man | \
  44. sed -e 's/"/\\"/g' \
  45. -e 's/^/const char conf_man[] = "/' \
  46. -e 's/$$/";/' >conf_man.c
  47. @@ -66,10 +66,10 @@
  48. ./compile list.c
  49. load: conf-ld conf-bglibs
  50. - ( bglibs=`head -1 conf-bglibs`; \
  51. + ( bglibs=`head -n 1 conf-bglibs`; \
  52. echo '#!/bin/sh';\
  53. echo 'main="$$1"; shift';\
  54. - echo exec `head -1 conf-ld` "-L'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg-sysdeps; \
  55. + echo exec `head -n 1 conf-ld` "-L'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg-sysdeps; \
  56. ) >load
  57. chmod 755 load