From: Armaan Bhojwani Date: Sun, 17 Oct 2021 19:41:06 +0000 (-0400) Subject: Initial config changes X-Git-Url: https://git.armaanb.net/?p=sic.git;a=commitdiff_plain Initial config changes --- 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.def.h deleted file mode 100644 index 6d720e9..0000000 --- a/config.def.h +++ /dev/null @@ -1,14 +0,0 @@ -/* Host used when "-h" is not given */ -#define DEFAULT_HOST "irc.oftc.net" - -/* Port used when "-p" is not given */ -#define DEFAULT_PORT "6667" - -/* Timestamp format; see strftime(3). */ -#define TIMESTAMP_FORMAT "%Y-%m-%d %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!" diff --git a/config.h b/config.h new file mode 100644 index 0000000..403fb71 --- /dev/null +++ b/config.h @@ -0,0 +1,14 @@ +/* Host used when "-h" is not given */ +#define DEFAULT_HOST "irc.oftc.net" + +/* Port used when "-p" is not given */ +#define DEFAULT_PORT "6667" + +/* Timestamp format; see strftime(3). */ +#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 "goodbye"