head	1.3;
access;
symbols
	RELENG_8_3_0_RELEASE:1.2.2.2
	RELENG_8_3:1.2.2.2.0.2
	RELENG_8_3_BP:1.2.2.2
	RELENG_7_4_0_RELEASE:1.1.1.2.4.1.6.1
	RELENG_8_2_0_RELEASE:1.2.2.1.6.1
	RELENG_7_4:1.1.1.2.4.1.0.6
	RELENG_7_4_BP:1.1.1.2.4.1
	RELENG_8_2:1.2.2.1.0.6
	RELENG_8_2_BP:1.2.2.1
	RELENG_8_1_0_RELEASE:1.2.2.1.4.1
	RELENG_8_1:1.2.2.1.0.4
	RELENG_8_1_BP:1.2.2.1
	RELENG_7_3_0_RELEASE:1.1.1.2.4.1.4.1
	RELENG_7_3:1.1.1.2.4.1.0.4
	RELENG_7_3_BP:1.1.1.2.4.1
	RELENG_8_0_0_RELEASE:1.2.2.1.2.1
	RELENG_8_0:1.2.2.1.0.2
	RELENG_8_0_BP:1.2.2.1
	RELENG_8:1.2.0.2
	RELENG_8_BP:1.2
	RELENG_7_2_0_RELEASE:1.1.1.2.4.1.2.1
	RELENG_7_2:1.1.1.2.4.1.0.2
	RELENG_7_2_BP:1.1.1.2.4.1
	RELENG_7_1_0_RELEASE:1.1.1.2.8.1
	RELENG_6_4_0_RELEASE:1.1.1.2.2.1.6.1
	RELENG_7_1:1.1.1.2.0.8
	RELENG_7_1_BP:1.1.1.2
	RELENG_6_4:1.1.1.2.2.1.0.6
	RELENG_6_4_BP:1.1.1.2.2.1
	RELENG_7_0_0_RELEASE:1.1.1.2
	RELENG_6_3_0_RELEASE:1.1.1.2.2.1
	RELENG_7_0:1.1.1.2.0.6
	RELENG_7_0_BP:1.1.1.2
	RELENG_6_3:1.1.1.2.2.1.0.4
	RELENG_6_3_BP:1.1.1.2.2.1
	RELENG_7:1.1.1.2.0.4
	RELENG_7_BP:1.1.1.2
	RELENG_6_2_0_RELEASE:1.1.1.2.2.1
	RELENG_6_2:1.1.1.2.2.1.0.2
	RELENG_6_2_BP:1.1.1.2.2.1
	RELENG_6:1.1.1.2.0.2
	CSUP_20060313:1.1.1.2
	CSUP_20060303:1.1.1.1
	CSUP_20060302:1.1.1.1
	CSUP:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2010.03.02.07.26.07;	author lulf;	state dead;
branches;
next	1.2;

1.2
date	2009.01.05.15.18.16;	author lulf;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2006.03.03.04.11.25;	author mux;	state Exp;
branches
	1.1.1.1;
next	;

1.2.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.2.2.1.2.1
	1.2.2.1.4.1
	1.2.2.1.6.1;
next	1.2.2.2;

1.2.2.2
date	2012.01.29.14.58.54;	author marius;	state dead;
branches;
next	;

1.2.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.2.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.2.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.1.1.1
date	2006.03.03.04.11.25;	author mux;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2006.03.14.03.51.13;	author mux;	state Exp;
branches
	1.1.1.2.2.1
	1.1.1.2.4.1
	1.1.1.2.8.1;
next	;

1.1.1.2.2.1
date	2006.05.15.13.40.39;	author mux;	state Exp;
branches
	1.1.1.2.2.1.6.1;
next	1.1.1.2.2.2;

1.1.1.2.2.2
date	2012.11.17.07.38.42;	author svnexp;	state Exp;
branches;
next	;

1.1.1.2.2.1.6.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.1.1.2.4.1
date	2009.03.17.06.54.41;	author lulf;	state Exp;
branches
	1.1.1.2.4.1.2.1
	1.1.1.2.4.1.4.1
	1.1.1.2.4.1.6.1;
next	1.1.1.2.4.2;

1.1.1.2.4.2
date	2012.11.17.08.00.55;	author svnexp;	state Exp;
branches;
next	;

1.1.1.2.4.1.2.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.1.1.2.4.1.4.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.1.1.2.4.1.6.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.1.1.2.4.1.6.2;

1.1.1.2.4.1.6.2
date	2012.11.17.08.16.33;	author svnexp;	state Exp;
branches;
next	;

1.1.1.2.8.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;


desc
@@


1.3
log
@SVN rev 204556 on 2010-03-02 07:26:07Z by lulf

- Move csup away from contrib/ and into usr.bin/. Software is no longer
  contributed, and main development is happening in the FreeBSD repo.

Suggested by:	joel
@
text
@# A simple gmake Makefile, to be used on Linux and Darwin.  It shouldn't
# be used elsewhere because it assumes that the target system doesn't
# support BSD extended file flags.
#
# $FreeBSD: src/contrib/csup/GNUmakefile,v 1.2 2009/01/05 15:18:16 lulf Exp $
#

PREFIX?=/usr/local
OWNER?=	0
GROUP?=	0

UNAME=	$(shell uname -s)

SRCS=	attrstack.c config.c detailer.c diff.c fattr.c fixups.c fnmatch.c \
	globtree.c idcache.c keyword.c lex.rcs.c lister.c main.c misc.c mux.c \
	pathcomp.c parse.c proto.c rcsfile.c rcsparse.c rsyncfile.c status.c \
	stream.c threads.c token.c updater.c
OBJS=	$(SRCS:.c=.o)

WARNS=	-Wall -W -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith \
	-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow \
	-Wcast-align -Wunused-parameter -Wchar-subscripts -Winline \
	-Wnested-externs -Wredundant-decls -Wno-format-y2k

CFLAGS+= -g -O -pipe -DNDEBUG -I$(PREFIX)/include
ifeq ($(UNAME), Linux)
	CFLAGS+= -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
endif
ifeq ($(UNAME), Darwin)
	CFLAGS+= -DHAVE_FFLAGS
endif
CFLAGS+= $(WARNS)
LDFLAGS= -L$(PREFIX)/lib -lcrypto -lz -lpthread

.PHONY: all clean install

all: csup csup.1.gz

csup: $(OBJS)
	$(CC) $(CFLAGS) -o $@@ $^ $(LDFLAGS)

config.c: parse.h

token.c: token.l

parse.c: parse.y

parse.h: parse.c

clean:
	rm -f csup $(OBJS) parse.c parse.h token.c csup.1.gz

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@@ $<

%.c: %.y
	$(YACC) -d -o $@@ $<

csup.1.gz: csup.1
	gzip -cn $< > $@@

install: csup csup.1.gz
	install -s -o $(OWNER) -g $(GROUP) csup $(PREFIX)/bin
	install -s -o $(OWNER) -g $(GROUP) csup.1.gz $(PREFIX)/share/man/man1
@


1.2
log
@SVN rev 186781 on 2009-01-05 15:18:16Z by lulf

Merge support for CVSMode (aka. mirror mode) into csup. This means csup can now
fetch a complete CVS repository. Support for rsync update of regular files are
also included, but are not yet enabled. The change should not have an impact on
existing csup usage, as little of the existing code has changed.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.2.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.2.2.2
log
@SVN rev 230745 on 2012-01-29 14:58:54Z by marius

MFC: r204556

Move csup away from contrib/ and into usr.bin/. Software is no longer
contributed, and main development is happening in the FreeBSD repo.
@
text
@d5 1
a5 1
# $FreeBSD: src/contrib/csup/GNUmakefile,v 1.2.2.1 2009/08/03 08:13:06 kensmith Exp $
@


1.2.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.2.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.2.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.1
log
@Initial revision
@
text
@d5 1
a5 1
# $FreeBSD: projects/csup/GNUmakefile,v 1.6 2006/03/01 03:11:50 mux Exp $
d15 3
a17 2
	globtree.c keyword.c lister.c main.c misc.c mux.c pathcomp.c parse.c \
	proto.c status.c stream.c threads.c token.c updater.c
d26 1
a26 1
ifeq ($(UNAME), "Linux")
d29 1
a29 1
ifeq ($(UNAME), "Darwin")
@


1.1.1.1
log
@Initial import of csup.
@
text
@@


1.1.1.2
log
@Import the latest snapshot of csup (20060313).
@
text
@d5 1
a5 1
# $FreeBSD: projects/csup/GNUmakefile,v 1.8 2006/03/13 22:16:27 mux Exp $
d15 2
a16 2
	globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c pathcomp.c \
	parse.c proto.c status.c stream.c threads.c token.c updater.c
d25 1
a25 1
ifeq ($(UNAME), Linux)
d28 1
a28 1
ifeq ($(UNAME), Darwin)
@


1.1.1.2.4.1
log
@SVN rev 189918 on 2009-03-17 06:54:41Z by lulf

MFH:
r186781
Merge support for CVSMode (aka. mirror mode) into csup. This means csup can now
fetch a complete CVS repository. Support for rsync update of regular files are
also included, but are not yet enabled. The change should not have an impact on
existing csup usage, as little of the existing code has changed.

r186871
- Update manpage now that cvs mode is supported.

r188405
- Fix an issue where file attributes were not installed correctly during a Touch
  and SetAttrs operation.
- SetAttrs and Touch were incorrectly switched.

r188644
- Do not free the pattern lists immediately after use, as they might be needed
  again in case the connection is interrupted and csup have to reconnect. The
  lists will be freed after the collection has been completely processed.

r189455
- Try to handle rcsfile write failures in the same way as cvsup, as they are not
  necessarily fatal. If the file was incorrectly written, the checksum will
  detect it and the file will be retransferred.
@
text
@d5 1
a5 1
# $FreeBSD$
d15 2
a16 3
	globtree.c idcache.c keyword.c lex.rcs.c lister.c main.c misc.c mux.c \
	pathcomp.c parse.c proto.c rcsfile.c rcsparse.c rsyncfile.c status.c \
	stream.c threads.c token.c updater.c
@


1.1.1.2.4.2
log
@Switch importer
@
text
@d5 1
a5 1
# $FreeBSD: stable/7/contrib/csup/GNUmakefile 189918 2009-03-17 06:54:41Z lulf $
@


1.1.1.2.4.1.6.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.1.1.2.4.1.6.2
log
@Switch importer
@
text
@d5 1
a5 1
# $FreeBSD: releng/7.4/contrib/csup/GNUmakefile 189918 2009-03-17 06:54:41Z lulf $
@


1.1.1.2.4.1.4.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.1.1.2.4.1.2.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.1.1.2.8.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.1.1.2.2.1
log
@MFC import of csup
@
text
@d5 1
a5 1
# $FreeBSD: src/contrib/csup/GNUmakefile,v 1.1.1.2 2006/03/14 03:51:13 mux Exp $
@


1.1.1.2.2.2
log
@Switch importer
@
text
@d5 1
a5 1
# $FreeBSD: stable/6/contrib/csup/GNUmakefile 158594 2006-05-15 13:40:40Z mux $
@


1.1.1.2.2.1.6.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@d5 1
a5 1
# $FreeBSD$
@


