head	1.26;
access;
symbols
	CSRG_19930606:1.1.1.1 CSRG:1.1.1;
locks; strict;
comment	@# @;


1.26
date	2006.03.24.01.04.42;	author jmallett;	state Exp;
branches;
next	1.25;

1.25
date	2006.03.24.00.33.28;	author jmallett;	state Exp;
branches;
next	1.24;

1.24
date	2003.03.06.02.34.54;	author jmallett;	state Exp;
branches;
next	1.23;

1.23
date	2003.03.06.02.33.52;	author jmallett;	state Exp;
branches;
next	1.22;

1.22
date	2003.03.06.02.31.40;	author jmallett;	state Exp;
branches;
next	1.21;

1.21
date	2003.03.06.02.30.12;	author jmallett;	state Exp;
branches;
next	1.20;

1.20
date	2003.02.27.07.27.47;	author jmallett;	state Exp;
branches;
next	1.19;

1.19
date	2002.07.19.08.24.53;	author jmallett;	state Exp;
branches;
next	1.18;

1.18
date	2002.07.18.04.23.04;	author jmallett;	state Exp;
branches;
next	1.17;

1.17
date	2002.06.17.12.36.33;	author jmallett;	state Exp;
branches;
next	1.16;

1.16
date	2002.05.27.17.18.07;	author jmallett;	state Exp;
branches;
next	1.15;

1.15
date	2002.05.27.05.28.02;	author jmallett;	state Exp;
branches;
next	1.14;

1.14
date	2002.05.26.21.46.35;	author jmallett;	state Exp;
branches;
next	1.13;

1.13
date	2002.05.26.20.02.42;	author jmallett;	state Exp;
branches;
next	1.12;

1.12
date	2002.05.26.19.40.47;	author jmallett;	state Exp;
branches;
next	1.11;

1.11
date	2002.05.26.03.12.26;	author jmallett;	state Exp;
branches;
next	1.10;

1.10
date	2002.05.25.23.16.43;	author jmallett;	state Exp;
branches;
next	1.9;

1.9
date	2002.05.25.22.47.40;	author jmallett;	state Exp;
branches;
next	1.8;

1.8
date	2002.05.25.01.42.33;	author jmallett;	state Exp;
branches;
next	1.7;

1.7
date	2002.05.24.22.49.07;	author jmallett;	state Exp;
branches;
next	1.6;

1.6
date	2002.05.24.21.55.18;	author jmallett;	state Exp;
branches;
next	1.5;

1.5
date	2002.05.24.21.54.46;	author jmallett;	state Exp;
branches;
next	1.4;

1.4
date	2002.05.24.18.43.10;	author jmallett;	state Exp;
branches;
next	1.3;

1.3
date	2002.05.24.16.27.09;	author jmallett;	state Exp;
branches;
next	1.2;

1.2
date	2002.05.24.07.04.02;	author jmallett;	state Exp;
branches;
next	1.1;

1.1
date	2002.05.24.04.15.04;	author jmallett;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.05.24.04.15.04;	author jmallett;	state Exp;
branches;
next	;


desc
@@


1.26
log
@A bunch of really gross and hackish cleanup.  The world would be a better place
if this were properly split up into libraries for doing things to SCCS files and
libraries for writing unix apps, and if the actual commands themselves were more
cleanly implemented.  It probably wouldn't be very difficult to do, but it'd be
a big pain, given the sheer volume of code in SCCS.
@
text
@#	makefile	4.7	90/11/11
# $FreeBSD$
#
CFLAGS= -DPREFIX=\"${DESTDIR}\" -W -Wall -Werror
LIBS=	../com/comobj.a ../libpw.a
BDIR=	${DESTDIR}/bin
BINOWN?=root
BINGRP?=wheel
INSTALL=install -o ${BINOWN} -g ${BINGRP} -m 755

all:	admin bdiff chghist comb delta get prt rmdel sccsdiff.sh \
	val snull cmt prs

admin:	admin.o alloc.o $(LIBS)
	$(CC) -o admin admin.o $(LIBS) alloc.o

admin.o:	admin.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) admin.c

cmt:	cmt.o alloc.o $(LIBS)
	$(CC) -o cmt cmt.o $(LIBS) alloc.o

cmt.o:	cmt.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) cmt.c

bdiff:	bdiff.o alloc.o $(LIBS)
	$(CC) -o bdiff bdiff.o $(LIBS) alloc.o

bdiff.o:	bdiff.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) bdiff.c

comb:	comb.o alloc.o $(LIBS)
	$(CC) -o comb comb.o $(LIBS) alloc.o

comb.o:		comb.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) comb.c

snull:	snull.o alloc.o $(LIBS)
	$(CC) -o snull snull.o $(LIBS) alloc.o

snull.o:		snull.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) snull.c

delta:	delta.o alloc.o $(LIBS)
	$(CC) -o delta delta.o $(LIBS) alloc.o

delta.o:	delta.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) -DLOGDELTA delta.c

get:	get.o alloc.o $(LIBS)
	$(CC) -o get get.o $(LIBS) alloc.o

get.o:		get.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) get.c

prt:	prt.o alloc.o $(LIBS)
	$(CC) -o prt prt.o $(LIBS) alloc.o

prt.o:		prt.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) prt.c

prs:	prs.o alloc.o $(LIBS)
	$(CC) -o prs prs.o $(LIBS) alloc.o

prs.o:		prs.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) prs.c

chghist:	rmchg
	-rm -f chghist
	ln rmchg chghist

rmdel:	rmchg
	-rm -f rmdel
	ln rmchg rmdel

rmchg:	rmchg.o alloc.o $(LIBS)
	$(CC) -o rmchg rmchg.o $(LIBS) alloc.o

rmchg.o:	rmchg.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) rmchg.c

val:	val.o alloc.o $(LIBS)
	$(CC) -o val val.o $(LIBS) alloc.o

val.o:	val.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) val.c

../com/comobj.a:
	cd ../com; make comobj.a

../libpw.a:
	cd ../util; make ../libpw.a

clean:
	rm -f *.o
	rm -f admin bdiff chghist comb delta get prt rmdel \
	    val snull cmt rmchg prs

install: all
	${INSTALL} admin ${BDIR}
	${INSTALL} bdiff ${BDIR}
	${INSTALL} chghist ${BDIR}
	${INSTALL} comb ${BDIR}
	${INSTALL} delta ${BDIR}
	${INSTALL} get ${BDIR}
	${INSTALL} prs ${BDIR}
	${INSTALL} prt ${BDIR}
	${INSTALL} snull ${BDIR}
	${INSTALL} val ${BDIR}
	${INSTALL} sccsdiff.sh ${BDIR}/sccsdiff
	rm -f ${BDIR}/rmdel ${BDIR}/rmchg
	ln ${BDIR}/chghist ${BDIR}/rmchg
	ln ${BDIR}/chghist ${BDIR}/rmdel
@


1.25
log
@Just for the sake of it, some defaults for BINOWN and BINGRP in case anyone
ever wants to install on a system that doesn't set them right.
@
text
@d4 1
a4 1
CFLAGS= -DPREFIX=\"${DESTDIR}\"
@


1.24
log
@Nuke superfluous flags to install.
@
text
@d7 2
@


1.23
log
@Remove warnings and other flags to the compiler, too noisy for now.  Do some
style cleanup: move variable assignments around.
@
text
@d7 1
a7 1
INSTALL=install -s -o ${BINOWN} -g ${BINGRP} -m 755
d108 1
a108 1
	${INSTALL} -c sccsdiff.sh ${BDIR}/sccsdiff
@


1.22
log
@Fix a badly greedy :%s done before commit, bad juli no cookie.
@
text
@d4 1
a4 1
CFLAGS=	-O -W -Wall -ansi -pedantic -Wno-long-long -DPREFIX=\"${DESTDIR}\"
d6 2
a96 2
BDIR=	${DESTDIR}/bin
INSTALL=install -s -o bin -g bin -m 755
@


1.21
log
@Write install (many options).... as ${INSTALL}.  If you have to write it more
than once, it should be a variable.  Plus, I needed to make this use BINOWN
and BINGRP, too, and this does that.
@
text
@d96 1
a96 1
INSTALL=${INSTALL}
@


1.20
log
@A simple build/install capability, allowing one to build something runnable
without hand-tchuning:
	make DESTDIR=/opt/source-code-control-system tree all install

Yes DESTDIR traditionally is used for engineering a release into a destination
dir, and it should probably be called PREFIX, as it is in code.  But bah,
humbug.  Spam the README with some of my own ranting, to accompany the
eloquent words Kirk wrote.

Notably, help doesn't work, unless you pull the help files from an SGI or
similar, and then you'll have the joy of "help stuck" and similar.  I'll try
to find a -free enough- source of these, though admittedly, that would require
being sure none of the errors mismatch, which would suck.

Still plenty of warning spa^H^H^H^H incentive.
@
text
@d96 1
d98 11
a108 11
	install -s -o bin -g bin -m 755 admin ${BDIR}
	install -s -o bin -g bin -m 755 bdiff ${BDIR}
	install -s -o bin -g bin -m 755 chghist ${BDIR}
	install -s -o bin -g bin -m 755 comb ${BDIR}
	install -s -o bin -g bin -m 755 delta ${BDIR}
	install -s -o bin -g bin -m 755 get ${BDIR}
	install -s -o bin -g bin -m 755 prs ${BDIR}
	install -s -o bin -g bin -m 755 prt ${BDIR}
	install -s -o bin -g bin -m 755 snull ${BDIR}
	install -s -o bin -g bin -m 755 val ${BDIR}
	install -c -o bin -g bin -m 755 sccsdiff.sh ${BDIR}/sccsdiff
@


1.19
log
@ * Turn on -Wno-long-long.  Despite the fact that no code here uses long long,
   some FreeBSD system headers *do*, sigh.
@
text
@d4 1
a4 1
CFLAGS=	-g -O -W -Wall -ansi -pedantic -Wno-long-long
d92 1
a92 1
	rm -f admin bdiff chghist comb scv delta get prt rmdel \
d95 1
a95 1
BDIR=	${DESTDIR}/usr/bin
a104 1
#	install -s -o bin -g bin -m 755 scv ${BDIR}
@


1.18
log
@ * Turn on -ansi -pedantic.
 * Do 'struct hack' for SCCSID() macro, per the CFLAGS changes.
 * Use gid_t appropriately, but cast in signedness when getting it from an
   atoi(3) call, to check for error.
@
text
@d4 1
a4 1
CFLAGS=	-g -O -W -Wall -ansi -pedantic
@


1.17
log
@ * Add $FreeBSD$ after copyright in comments.
 * Finish using ${OBJS} for objects in util/Makefile.
 * Prevent defines.h from being included more than once.
 * Kill USXALLOC.
 * Kill an unused variable in cmd/prs.c.

Christoph Hellwig <hch@@infradead.org>
 * Use isatty(0) instead of old incompatible ioctl(2) calls.
 * isnumber() needs defined outside of FreeBSD.
 * __unused should only be implemented as __attribute__ in GNUC.
@
text
@d4 1
a4 1
CFLAGS=	-g -O -W -Wall
@


1.16
log
@Clean up the makefile.
@
text
@d2 1
@


1.15
log
@Remove reliance on libcompat for ftime(3), it can easily be replaced with the
localtime function in the context we use it for, and we already use localtime
anyway, so tada.
@
text
@d4 1
a4 1
LIBS=	../libpw.a
d9 2
a10 2
admin:	admin.o ../com/comobj.a alloc.o
	$(CC) -o admin admin.o ../com/comobj.a $(LIBS) alloc.o
d15 2
a16 2
cmt:	cmt.o ../com/comobj.a alloc.o
	$(CC) -o cmt cmt.o ../com/comobj.a $(LIBS) alloc.o
d21 2
a22 2
bdiff:	bdiff.o ../com/comobj.a alloc.o
	$(CC) -o bdiff bdiff.o ../com/comobj.a $(LIBS) alloc.o
d27 2
a28 2
comb:	comb.o ../com/comobj.a alloc.o
	$(CC) -o comb comb.o ../com/comobj.a $(LIBS) alloc.o
d33 2
a34 8
scv:	scv.o ../com/comobj.a alloc.o
	$(CC) -o scv scv.o ../com/comobj.a $(LIBS) alloc.o

scv.o:		scv.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) scv.c

snull:	snull.o ../com/comobj.a alloc.o
	$(CC) -o snull snull.o ../com/comobj.a $(LIBS) alloc.o
d39 2
a40 2
delta:	delta.o ../com/comobj.a alloc.o
	$(CC) -o delta delta.o ../com/comobj.a $(LIBS) alloc.o
d45 2
a46 2
get:	get.o ../com/comobj.a alloc.o
	$(CC) -o get get.o ../com/comobj.a $(LIBS) alloc.o
d51 2
a52 2
prt:	prt.o ../com/comobj.a alloc.o
	$(CC) -o prt prt.o ../com/comobj.a $(LIBS) alloc.o
d57 2
a58 2
prs:	prs.o ../com/comobj.a alloc.o
	$(CC) -o prs prs.o ../com/comobj.a $(LIBS) alloc.o
d71 2
a72 2
rmchg:	rmchg.o ../com/comobj.a alloc.o
	$(CC) -o rmchg rmchg.o ../com/comobj.a $(LIBS) alloc.o
d77 2
a78 2
val:	val.o ../com/comobj.a alloc.o
	$(CC) -o val val.o ../com/comobj.a $(LIBS) alloc.o
d85 3
@


1.14
log
@Warnings, errors, etc.

Remove -Werror for now.
@
text
@d10 1
a10 1
	$(CC) -o admin admin.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d16 1
a16 1
	$(CC) -o cmt cmt.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d28 1
a28 1
	$(CC) -o comb comb.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d40 1
a40 1
	$(CC) -o snull snull.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d46 1
a46 1
	$(CC) -o delta delta.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d52 1
a52 1
	$(CC) -o get get.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d58 1
a58 1
	$(CC) -o prt prt.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d64 1
a64 1
	$(CC) -o prs prs.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d78 1
a78 1
	$(CC) -o rmchg rmchg.o ../com/comobj.a $(LIBS) alloc.o -lcompat
d84 1
a84 1
	$(CC) -o val val.o ../com/comobj.a $(LIBS) $(LIBES) alloc.o
@


1.13
log
@For OpenBSD, again: use cd instead of chdir.
@
text
@d3 1
a3 1
CFLAGS=	-g -O -W -Wall -Werror
@


1.12
log
@Warnings cleanups for cmd.  val(SCCS) is the showstopper here.
@
text
@d90 1
a90 1
	chdir ../com; make comobj.a
@


1.11
log
@Consistent interfaces, prototypes.  Don't mix integers and pointers.  Use the
right return values.  0 and NULL are not the same thing, really.  Kill some
warnings along the way.
@
text
@d3 1
a3 1
CFLAGS=	-g -O -W
@


1.10
log
@Warnings, bug fixes sparked by warnings, undo part of last revision to
admin.c, it was incorrect.

Turn off Werror, cmd is a mess.
@
text
@d3 1
a3 1
CFLAGS=	-g -O -w
@


1.9
log
@Start sweeping cmd for warnings.  Change includes.
@
text
@d3 1
a3 1
CFLAGS=	-g -O -W -Werror
@


1.8
log
@Kill the undead (what).

SCCSID().
@
text
@d3 1
a3 1
CFLAGS=	-g -O -w
@


1.7
log
@Remove what.  FreeBSD has one.

Set BDIR to ${DESTDIR}/usr/bin to match the pathnames.h changes.
@
text
@d7 1
a7 1
	what val snull cmt prs
@


1.6
log
@typo.
@
text
@a82 6
what:	what.o ../com/comobj.a alloc.o
	$(CC) -o what what.o ../com/comobj.a $(LIBS) $(LIBES) alloc.o

what.o:		what.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) what.c

d95 1
a95 1
	    what val snull cmt rmchg prs
d97 1
a97 1
BDIR=	${DESTDIR}/usr/local/bin
a109 1
	install -s -o bin -g bin -m 755 what ${BDIR}
@


1.5
log
@Remove this help implementation, I prefer mine.
@
text
@d6 1
a6 1
all:	admin bdiff chghist comb delta gel prt rmdel sccsdiff.sh \
@


1.4
log
@Protoize, warnings, cleanup.
@
text
@d6 1
a6 1
all:	admin bdiff chghist comb delta get help prt rmdel sccsdiff.sh \
a56 6
help:	help.o ../com/comobj.a alloc.o
	$(CC) -o help help.o ../com/comobj.a $(LIBS) alloc.o

help.o:		help.c ../hdr/defines.h ../hdr/had.h
	$(CC) -c $(CFLAGS) help.c

d100 1
a100 1
	rm -f admin bdiff chghist comb scv delta get help prt rmdel \
a110 1
	install -s -o bin -g bin -m 755 help ${BDIR}
@


1.3
log
@Modernise the code, remove things we don't really need anymore, and kill
warnings.
@
text
@d3 1
a3 1
CFLAGS=	-O -w
@


1.2
log
@Warnings cleanup, etc.
@
text
@d4 1
a4 1
LIBS=	../libpw.a ../libPW.a
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
LIBS=	../libpw.a ../libPW.a ../libwrt.a
@


1.1.1.1
log
@Initial import of CSRG SCCS.

Obtained from:	Kirk McKusick
@
text
@@
