]> git.armaanb.net Git - sic.git/commitdiff
Initial config changes master
authorArmaan Bhojwani <me@armaanb.net>
Sun, 17 Oct 2021 19:41:06 +0000 (15:41 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 18 Oct 2021 01:11:54 +0000 (21:11 -0400)
.gitignore [new file with mode: 0644]
Makefile
config.def.h [deleted file]
config.h [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..c0eafee
--- /dev/null
@@ -0,0 +1,2 @@
+*.o
+sic
index 58efc9f66551bc5d14be9ce5cb91c2c3deefd8ec..45fcb24498e69ed54fc38644f96a2e71d1487b07 100644 (file)
--- 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 (file)
index 6d720e9..0000000
+++ /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 (file)
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"