This commit is contained in:
parent
2583424e08
commit
24e76d0b28
48
misc/mmv/Makefile
Normal file
48
misc/mmv/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# OpenBSD makefile for: mmv
|
||||
# Version required: 1.01b
|
||||
# Date created: June 6 1998
|
||||
# Whom: Angelos D. Keromytis
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/06/08 02:52:32 angelos Exp $
|
||||
#
|
||||
|
||||
DISTNAME= mmv
|
||||
PKGNAME= mmv-1.01b
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= ftp://gatekeeper.dec.com/pub/usenet/comp.sources.unix/volume21/mmv/
|
||||
DISTFILES= part01.Z part02.Z
|
||||
|
||||
PATCH_SITES= ftp://gatekeeper.dec.com/pub/usenet/comp.sources.unix/volume22/
|
||||
PATCHFILES= mmv.pch.Z
|
||||
|
||||
MAINTAINER= angelos@openbsd.org
|
||||
|
||||
NO_CDROM= "No redistribution for charge"
|
||||
NO_PACKAGE= "No modification"
|
||||
DIST_SUBDIR= ${DISTNAME}
|
||||
NO_WRKSUBDIR= yes
|
||||
PATCH_DIST_ARGS= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP} mmv.c
|
||||
MAN1= mmv.1
|
||||
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}/tmp
|
||||
@(for file in ${DISTFILES}; do \
|
||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/$$file ${WRKDIR}/tmp; \
|
||||
done ; \
|
||||
uncompress ${WRKDIR}/tmp/*; \
|
||||
cd ${WRKDIR}; \
|
||||
for file in tmp/part0* ; do \
|
||||
${SH} ${SCRIPTDIR}/unshar $$file; \
|
||||
done ; \
|
||||
${CAT} mmv.c.? >mmv.c ; ${RM} mmv.c.? )
|
||||
|
||||
do-install:
|
||||
(cd ${PREFIX}/bin ; ${RM} -f mmv mad mcp mln ; \
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/mmv ${PREFIX}/bin ; \
|
||||
ln -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mad ; \
|
||||
ln -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mcp ; \
|
||||
ln -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mln ; \
|
||||
${INSTALL_MAN} ${WRKSRC}/mmv.1 ${PREFIX}/man/man1 ; )
|
||||
|
||||
.include <bsd.port.mk>
|
3
misc/mmv/files/md5
Normal file
3
misc/mmv/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (mmv/part01.Z) = 8844a88bbe189e280361136f25a589d4
|
||||
MD5 (mmv/part02.Z) = 9e01b9aaceaab18cb9efafa6dec5df81
|
||||
MD5 (mmv/mmv.pch.Z) = e6f8cb26c8966a82d6f3f26a6e4bee23
|
98
misc/mmv/patches/patch-aa
Normal file
98
misc/mmv/patches/patch-aa
Normal file
@ -0,0 +1,98 @@
|
||||
*** mmv.c.old Wed Mar 1 05:23:56 1995
|
||||
--- mmv.c Thu Mar 2 05:43:37 1995
|
||||
***************
|
||||
*** 88,94 ****
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
- #include <ctype.h>
|
||||
|
||||
#ifdef MSDOS
|
||||
/* for MS-DOS (under Turbo C 1.5)*/
|
||||
--- 88,93 ----
|
||||
***************
|
||||
*** 126,132 ****
|
||||
#include <sys/file.h>
|
||||
|
||||
extern char *getenv();
|
||||
- extern long lseek();
|
||||
extern char *malloc();
|
||||
|
||||
#ifdef DIRENT
|
||||
--- 125,130 ----
|
||||
***************
|
||||
*** 176,182 ****
|
||||
|
||||
#else
|
||||
/* for System V and BSD */
|
||||
- #include <string.h>
|
||||
#include <sys/signal.h>
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
--- 174,179 ----
|
||||
***************
|
||||
*** 370,376 ****
|
||||
static int snap(/* REP *first, REP *p */);
|
||||
static void showdone(/* REP *fin */);
|
||||
static void breakout(/* */);
|
||||
! static int breakrep(/* */);
|
||||
static void breakstat(/* */);
|
||||
static void quit(/* */);
|
||||
static int copymove(/* REP *p */);
|
||||
--- 367,373 ----
|
||||
static int snap(/* REP *first, REP *p */);
|
||||
static void showdone(/* REP *fin */);
|
||||
static void breakout(/* */);
|
||||
! static void breakrep(/* */);
|
||||
static void breakstat(/* */);
|
||||
static void quit(/* */);
|
||||
static int copymove(/* REP *p */);
|
||||
***************
|
||||
*** 389,395 ****
|
||||
static int getstat(/* char *full, FILEINFO *f */);
|
||||
static int dwritable(/* HANDLE *h */);
|
||||
static int fwritable(/* char *hname, FILEINFO *f */);
|
||||
- static void memmove(/* void *to, void *from, int k */);
|
||||
#endif
|
||||
#ifndef RENAME
|
||||
static int rename(/* char *from, char *to */);
|
||||
--- 386,391 ----
|
||||
***************
|
||||
*** 2550,2559 ****
|
||||
}
|
||||
|
||||
|
||||
! static int breakrep()
|
||||
{
|
||||
gotsig = 1;
|
||||
- return(1);
|
||||
}
|
||||
|
||||
|
||||
--- 2546,2554 ----
|
||||
}
|
||||
|
||||
|
||||
! static void breakrep()
|
||||
{
|
||||
gotsig = 1;
|
||||
}
|
||||
|
||||
|
||||
***************
|
||||
*** 2832,2838 ****
|
||||
}
|
||||
|
||||
|
||||
! #ifndef MSDOS
|
||||
static void memmove(to, from, k)
|
||||
char *to, *from;
|
||||
unsigned k;
|
||||
--- 2827,2833 ----
|
||||
}
|
||||
|
||||
|
||||
! #if 0
|
||||
static void memmove(to, from, k)
|
||||
char *to, *from;
|
||||
unsigned k;
|
1
misc/mmv/pkg/COMMENT
Normal file
1
misc/mmv/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
move/copy/append/link multiple files with sophisticated wildcard matching
|
12
misc/mmv/pkg/DESCR
Normal file
12
misc/mmv/pkg/DESCR
Normal file
@ -0,0 +1,12 @@
|
||||
This is mmv, a program to move/copy/append/link multiple files
|
||||
according to a set of wildcard patterns. The wildcard matches
|
||||
can be reused in forming the target names. You can i.e. move
|
||||
all *.c.or? files to or?.new.*.c by saying 'mmv "*.c.or?" or=2.new.=1.c'
|
||||
|
||||
The multiple action is performed safely, i.e. without any unexpected
|
||||
deletion of files due to collisions of target names with existing
|
||||
filenames or with other target names. Furthermore, before doing
|
||||
anything, mmv attempts to detect any errors that would result from the
|
||||
entire set of actions specified and gives the user the choice of
|
||||
either aborting before beginning, or proceeding by avoiding the
|
||||
offending parts.
|
5
misc/mmv/pkg/PLIST
Normal file
5
misc/mmv/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
bin/mmv
|
||||
bin/mad
|
||||
bin/mcp
|
||||
bin/mln
|
||||
man/man1/mmv.1
|
8
misc/mmv/scripts/unshar
Normal file
8
misc/mmv/scripts/unshar
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
ed $1 <<XXXEOF > /dev/null
|
||||
/#! \/bin\/sh
|
||||
1,.-1d
|
||||
w
|
||||
q
|
||||
XXXEOF
|
||||
/bin/sh $1 > /dev/null
|
Loading…
x
Reference in New Issue
Block a user