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.

111 lines
2.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/base/mmv/qd-fix.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. --- ./mmv.c.orig Mon Oct 25 11:29:39 1993
  20. +++ ./mmv.c Sat Mar 24 04:10:46 2001
  21. @@ -126,7 +126,7 @@
  22. extern char *getenv();
  23. extern long lseek();
  24. -extern char *malloc();
  25. +extern void *malloc();
  26. #ifdef HAS_DIRENT
  27. #include <dirent.h>
  28. @@ -390,7 +390,7 @@
  29. static int snap(/* REP *first, REP *p */);
  30. static void showdone(/* REP *fin */);
  31. static void breakout(/* */);
  32. -static int breakrep(/* */);
  33. +static __sighandler_t breakrep(/* */);
  34. static void breakstat(/* */);
  35. static void quit(/* */);
  36. static int copymove(/* REP *p */);
  37. @@ -436,7 +436,7 @@
  38. static SLICER slicer[2] = {{NULL, NULL, 0}, {NULL, NULL, 0}};
  39. static int badreps = 0, paterr = 0, direrr, failed = 0, gotsig = 0, repbad;
  40. -static FILE *outfile = stdout;
  41. +static FILE *outfile;
  42. static char IDF[] = "$$mmvdid.";
  43. static char TEMP[] = "$$mmvtmp.";
  44. @@ -497,6 +497,7 @@
  45. {
  46. char *frompat, *topat;
  47. + outfile = stdout;
  48. init();
  49. procargs(argc, argv, &frompat, &topat);
  50. domatch(frompat, topat);
  51. @@ -2383,7 +2384,7 @@
  52. #ifdef IS_MSDOS
  53. ctrlbrk(breakrep);
  54. #else
  55. - signal(SIGINT, breakrep);
  56. + signal(SIGINT, (void(*)(int))breakrep);
  57. #endif
  58. for (first = hrep.r_next, k = 0; first != NULL; first = first->r_next) {
  59. @@ -2578,10 +2579,10 @@
  60. }
  61. -static int breakrep()
  62. +static __sighandler_t breakrep()
  63. {
  64. gotsig = 1;
  65. - return(1);
  66. + return(SIG_IGN);
  67. }
  68. --- ./Makefile.orig Mon Oct 25 11:35:35 1993
  69. +++ ./Makefile Sat Mar 24 04:05:06 2001
  70. @@ -1,22 +1,20 @@
  71. # Possible defines in CONF:
  72. # IS_MSDOS IS_SYSV IS_V7 IS_BSD HAS_DIRENT HAS_RENAME MV_DIR
  73. -CC =gcc -traditional
  74. +CC =gcc
  75. LD =$(CC)
  76. CONF =-DIS_SYSV -DHAS_DIRENT -DHAS_RENAME
  77. -CFLAGS =-O2 -m486 $(CONF)
  78. -LDFLAGS =-s -N
  79. +CFLAGS =-O2 $(CONF)
  80. +LDFLAGS =
  81. -IBIN =$(LOCAL)$(ARCH)/bin
  82. -IMAN =$(LOCAL)$(ANY)/man
  83. +BINDIR = /usr/bin
  84. +MANDIR = /usr/share/man/man1/
  85. mmv: mmv.o
  86. clean:
  87. rm -f mmv mmv.o
  88. -install: $(DEST)$(IBIN)/mmv
  89. -install: $(DEST)$(IMAN)/man1/mmv.1
  90. -
  91. -$(DEST)$(IBIN)/mmv: mmv; cp $? $@
  92. -$(DEST)$(IMAN)/man1/mmv.1: mmv.1; cp $? $@
  93. +install: mmv
  94. + install -s mmv $(BINDIR)
  95. + cp mmv.1 $(MANDIR)