summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/contrib/Makefile
blob: 37805aa0a8030e1a56f3f0a0ad7cfc29972ebe8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $FreeBSD$

MAINTAINER=	peter@FreeBSD.org

.include "${.CURDIR}/../Makefile.inc"

.PATH:	${CVSDIR}/contrib
.PATH:	${CVSDIR}/man

#pvcs_to_rcs left out, it needs perl5

SCRIPTS= clmerge cln_hist commit_prep cvs2vendor cvs_acls cvscheck \
	 log log_accum mfpipe rcs-to-cvs rcs2log rcslock sccs2rcs \
	 easy-import

FILES=	 README cvscheck.man cvshelp.man descend.man intro.doc

EXAMPDIR=	/usr/share/examples/cvs
PERLPATH=	/usr/bin/perl
CLEANFILES+=	$(SCRIPTS)

.SUFFIXES: .sh .csh .pl

all:	${SCRIPTS}

.sh:
	cp $< $@

.csh:
	sed -e 's,xCSH_PATHx,/bin/csh,' $< > $@

.pl:
	sed -e 's,xPERL_PATHx,$(PERLPATH),' $< > $@


beforeinstall:
.for file in ${SCRIPTS}
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${file} ${DESTDIR}${EXAMPDIR}/contrib
.endfor
.for file in ${FILES}
	cd ${.CURDIR} ; \
		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
		${CVSDIR}/contrib/${file} ${DESTDIR}${EXAMPDIR}/contrib
.endfor

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud