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.

114 lines
3.0 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./mmv.c.orig Mon Oct 25 11:29:39 1993
  23. +++ ./mmv.c Sat Mar 24 04:10:46 2001
  24. @@ -126,7 +126,7 @@
  25. extern char *getenv();
  26. extern long lseek();
  27. -extern char *malloc();
  28. +extern void *malloc();
  29. #ifdef HAS_DIRENT
  30. #include <dirent.h>
  31. @@ -390,7 +390,7 @@
  32. static int snap(/* REP *first, REP *p */);
  33. static void showdone(/* REP *fin */);
  34. static void breakout(/* */);
  35. -static int breakrep(/* */);
  36. +static __sighandler_t breakrep(/* */);
  37. static void breakstat(/* */);
  38. static void quit(/* */);
  39. static int copymove(/* REP *p */);
  40. @@ -436,7 +436,7 @@
  41. static SLICER slicer[2] = {{NULL, NULL, 0}, {NULL, NULL, 0}};
  42. static int badreps = 0, paterr = 0, direrr, failed = 0, gotsig = 0, repbad;
  43. -static FILE *outfile = stdout;
  44. +static FILE *outfile;
  45. static char IDF[] = "$$mmvdid.";
  46. static char TEMP[] = "$$mmvtmp.";
  47. @@ -497,6 +497,7 @@
  48. {
  49. char *frompat, *topat;
  50. + outfile = stdout;
  51. init();
  52. procargs(argc, argv, &frompat, &topat);
  53. domatch(frompat, topat);
  54. @@ -2383,7 +2384,7 @@
  55. #ifdef IS_MSDOS
  56. ctrlbrk(breakrep);
  57. #else
  58. - signal(SIGINT, breakrep);
  59. + signal(SIGINT, (void(*)(int))breakrep);
  60. #endif
  61. for (first = hrep.r_next, k = 0; first != NULL; first = first->r_next) {
  62. @@ -2578,10 +2579,10 @@
  63. }
  64. -static int breakrep()
  65. +static __sighandler_t breakrep()
  66. {
  67. gotsig = 1;
  68. - return(1);
  69. + return(SIG_IGN);
  70. }
  71. --- ./Makefile.orig Mon Oct 25 11:35:35 1993
  72. +++ ./Makefile Sat Mar 24 04:05:06 2001
  73. @@ -1,22 +1,20 @@
  74. # Possible defines in CONF:
  75. # IS_MSDOS IS_SYSV IS_V7 IS_BSD HAS_DIRENT HAS_RENAME MV_DIR
  76. -CC =gcc -traditional
  77. +CC =gcc
  78. LD =$(CC)
  79. CONF =-DIS_SYSV -DHAS_DIRENT -DHAS_RENAME
  80. -CFLAGS =-O2 -m486 $(CONF)
  81. -LDFLAGS =-s -N
  82. +CFLAGS =-O2 $(CONF)
  83. +LDFLAGS =
  84. -IBIN =$(LOCAL)$(ARCH)/bin
  85. -IMAN =$(LOCAL)$(ANY)/man
  86. +BINDIR = /usr/bin
  87. +MANDIR = /usr/share/man/man1/
  88. mmv: mmv.o
  89. clean:
  90. rm -f mmv mmv.o
  91. -install: $(DEST)$(IBIN)/mmv
  92. -install: $(DEST)$(IMAN)/man1/mmv.1
  93. -
  94. -$(DEST)$(IBIN)/mmv: mmv; cp $? $@
  95. -$(DEST)$(IMAN)/man1/mmv.1: mmv.1; cp $? $@
  96. +install: mmv
  97. + install -s mmv $(BINDIR)
  98. + cp mmv.1 $(MANDIR)