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.

109 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mmv/qd-fix.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./mmv.c.orig Mon Oct 25 11:29:39 1993
  18. +++ ./mmv.c Sat Mar 24 04:10:46 2001
  19. @@ -126,7 +126,7 @@
  20. extern char *getenv();
  21. extern long lseek();
  22. -extern char *malloc();
  23. +extern void *malloc();
  24. #ifdef HAS_DIRENT
  25. #include <dirent.h>
  26. @@ -390,7 +390,7 @@
  27. static int snap(/* REP *first, REP *p */);
  28. static void showdone(/* REP *fin */);
  29. static void breakout(/* */);
  30. -static int breakrep(/* */);
  31. +static __sighandler_t breakrep(/* */);
  32. static void breakstat(/* */);
  33. static void quit(/* */);
  34. static int copymove(/* REP *p */);
  35. @@ -436,7 +436,7 @@
  36. static SLICER slicer[2] = {{NULL, NULL, 0}, {NULL, NULL, 0}};
  37. static int badreps = 0, paterr = 0, direrr, failed = 0, gotsig = 0, repbad;
  38. -static FILE *outfile = stdout;
  39. +static FILE *outfile;
  40. static char IDF[] = "$$mmvdid.";
  41. static char TEMP[] = "$$mmvtmp.";
  42. @@ -497,6 +497,7 @@
  43. {
  44. char *frompat, *topat;
  45. + outfile = stdout;
  46. init();
  47. procargs(argc, argv, &frompat, &topat);
  48. domatch(frompat, topat);
  49. @@ -2383,7 +2384,7 @@
  50. #ifdef IS_MSDOS
  51. ctrlbrk(breakrep);
  52. #else
  53. - signal(SIGINT, breakrep);
  54. + signal(SIGINT, (void(*)(int))breakrep);
  55. #endif
  56. for (first = hrep.r_next, k = 0; first != NULL; first = first->r_next) {
  57. @@ -2578,10 +2579,10 @@
  58. }
  59. -static int breakrep()
  60. +static __sighandler_t breakrep()
  61. {
  62. gotsig = 1;
  63. - return(1);
  64. + return(SIG_IGN);
  65. }
  66. --- ./Makefile.orig Mon Oct 25 11:35:35 1993
  67. +++ ./Makefile Sat Mar 24 04:05:06 2001
  68. @@ -1,22 +1,20 @@
  69. # Possible defines in CONF:
  70. # IS_MSDOS IS_SYSV IS_V7 IS_BSD HAS_DIRENT HAS_RENAME MV_DIR
  71. -CC =gcc -traditional
  72. +CC =gcc
  73. LD =$(CC)
  74. CONF =-DIS_SYSV -DHAS_DIRENT -DHAS_RENAME
  75. -CFLAGS =-O2 -m486 $(CONF)
  76. -LDFLAGS =-s -N
  77. +CFLAGS =-O2 $(CONF)
  78. +LDFLAGS =
  79. -IBIN =$(LOCAL)$(ARCH)/bin
  80. -IMAN =$(LOCAL)$(ANY)/man
  81. +BINDIR = /usr/bin
  82. +MANDIR = /usr/share/man/man1/
  83. mmv: mmv.o
  84. clean:
  85. rm -f mmv mmv.o
  86. -install: $(DEST)$(IBIN)/mmv
  87. -install: $(DEST)$(IMAN)/man1/mmv.1
  88. -
  89. -$(DEST)$(IBIN)/mmv: mmv; cp $? $@
  90. -$(DEST)$(IMAN)/man1/mmv.1: mmv.1; cp $? $@
  91. +install: mmv
  92. + install -s mmv $(BINDIR)
  93. + cp mmv.1 $(MANDIR)