From c64f91fd373466724518af6e731dfc30c609f7ee Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 17 Oct 2021 15:41:06 -0400 Subject: [PATCH] Initial config changes --- .gitignore | 2 ++ Makefile | 7 ++----- config.def.h => config.h | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 .gitignore rename config.def.h => config.h (78%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0eafee --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +sic diff --git a/Makefile b/Makefile index 58efc9f..45fcb24 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ all: ${BIN} ${BIN}: ${@:=.o} -${OBJ}: config.h strlcpy.c util.c +${OBJ}: strlcpy.c util.c .o: ${CC} -o $@ $< ${SIC_LDFLAGS} @@ -29,15 +29,12 @@ ${OBJ}: config.h strlcpy.c util.c .c.o: ${CC} -c ${SIC_CFLAGS} ${SIC_CPPFLAGS} -o $@ -c $< -config.h: - cp config.def.h $@ - clean: rm -f ${BIN} ${OBJ} "${NAME}-${VERSION}.tar.gz" dist: mkdir -p "${NAME}-${VERSION}" - cp -fR LICENSE Makefile README arg.h config.def.h \ + cp -fR LICENSE Makefile README arg.h config.h \ ${MAN1} ${SRC} util.c strlcpy.c "${NAME}-${VERSION}" tar -cf - "${NAME}-${VERSION}" | \ gzip -c > "${NAME}-${VERSION}.tar.gz" diff --git a/config.def.h b/config.h similarity index 78% rename from config.def.h rename to config.h index 6d720e9..403fb71 100644 --- a/config.def.h +++ b/config.h @@ -5,10 +5,10 @@ #define DEFAULT_PORT "6667" /* Timestamp format; see strftime(3). */ -#define TIMESTAMP_FORMAT "%Y-%m-%d %R" +#define TIMESTAMP_FORMAT "%R" /* Command prefix character. In most IRC clients this is '/'. */ #define COMMAND_PREFIX_CHARACTER ':' /* Parting message used when none is specified with ":l ..." command. */ -#define DEFAULT_PARTING_MESSAGE "sic - 250 LOC are too much!" +#define DEFAULT_PARTING_MESSAGE "goodbye" -- 2.39.2