From f0a492af4102c57205ea9c25f95bae4df5a4da71 Mon Sep 17 00:00:00 2001 From: mar Date: Mon, 12 Sep 1988 13:49:13 +0000 Subject: [PATCH] cleanup & add copyright message --- backup/Makefile | 16 +++++++--------- backup/dump_db.qc | 16 ++++------------ backup/dumprest.qc | 9 ++++----- backup/rest_db.qc | 13 +++++-------- 4 files changed, 20 insertions(+), 34 deletions(-) diff --git a/backup/Makefile b/backup/Makefile index 754dc1a0..43ad84f5 100644 --- a/backup/Makefile +++ b/backup/Makefile @@ -1,3 +1,9 @@ +# $Header$ +# +# (c) Copyright 1988 by the Massachusetts Institute of Technology. +# For copying and distribution information, please see the file +# . + .SUFFIXES: .SUFFIXES: .qc .o CFLAGS= -O @@ -10,7 +16,7 @@ EQLIBS = /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib cc -c ${CFLAGS} $*.c rm -f $*.c -all: smsbackup smsrestore # counts copy_backups +all: smsbackup smsrestore smsbackup: dump_db.o bkup1.o bkup.o dumprest.o cc -o $@ ${CFLAGS} dump_db.o bkup1.o bkup.o dumprest.o ${EQLIBS} @@ -18,12 +24,6 @@ smsbackup: dump_db.o bkup1.o bkup.o dumprest.o smsrestore: rest_db.o rest1.o rest.o dumprest.o cc -o $@ ${CFLAGS} rest_db.o rest1.o rest.o dumprest.o ${EQLIBS} -counts: counts.o - cc -o $@ ${CFLAGS} counts.o ${EQLIBS} - -salvager: salvager.o - cc -o $@ ${CFLAGS} salvager.o ${EQLIBS} - copy_backups: copy_backups.c cc -o $@ ${CFLAGS} -I../include copy_backups.c \ ../update/sms_update.o -L../lib \ @@ -53,8 +53,6 @@ clean: install: install smsbackup ../bin/smsbackup install smsrestore ../bin/smsrestore - install counts ../bin/counts - install salvager ../bin/salvager install nightly.sh ../bin/nightly.sh diff --git a/backup/dump_db.qc b/backup/dump_db.qc index 677cda0b..18c5340c 100644 --- a/backup/dump_db.qc +++ b/backup/dump_db.qc @@ -3,22 +3,13 @@ * $Author$ * $Header$ * - * Copyright (C) 1987 by the Massachusetts Institute of Technology + * (c) Copyright 1988 by the Massachusetts Institute of Technology. + * For copying and distribution information, please see the file + * . * * This program dumps the SMS database to a series of output files * which can be later read back into SMS in the event of a crash. * - * $Log$ - * Revision 1.3 1988-08-16 16:25:30 mar - * con't put extra whitespace in backup files - * - * Revision 1.2 87/07/13 03:52:53 wesommer - * Modified to pass lint, do better backups. - * -Revision 1.1 87/07/11 19:51:05 wesommer -Initial revision - - * */ #ifndef lint @@ -28,6 +19,7 @@ static char *rcsid_dump_db_c = "$Header$"; #include #include #include +#include /* putc without the line buffer hair */ diff --git a/backup/dumprest.qc b/backup/dumprest.qc index 5c97d7ec..580836a3 100644 --- a/backup/dumprest.qc +++ b/backup/dumprest.qc @@ -3,11 +3,9 @@ * $Author$ * $Header$ * - * Copyright (C) 1987 by the Massachusetts Institute of Technology - * - * $Log$ - * Revision 1.1 1987-07-13 03:53:09 wesommer - * Initial revision + * (c) Copyright 1988 by the Massachusetts Institute of Technology. + * For copying and distribution information, please see the file + * . * */ @@ -18,6 +16,7 @@ static char *rcsid_dumprest_qc = "$Header$"; #include #include #include +#include punt(msg) char *msg; diff --git a/backup/rest_db.qc b/backup/rest_db.qc index 3a3d8608..4ce571d3 100644 --- a/backup/rest_db.qc +++ b/backup/rest_db.qc @@ -3,14 +3,9 @@ * $Author$ * $Header$ * - * Copyright (C) 1987 by the Massachusetts Institute of Technology - * - * $Log$ - * Revision 1.2 1988-05-10 11:34:37 mar - * Throw away rest of field if too long - * - * Revision 1.1 87/07/13 03:50:02 wesommer - * Initial revision + * (c) Copyright 1988 by the Massachusetts Institute of Technology. + * For copying and distribution information, please see the file + * . * */ @@ -21,6 +16,8 @@ static char *rcsid_rest_db_qc = "$Header$"; #include #include #include +#include + /*ARGSUSED*/ main(argc, argv) -- 2.45.2