commit 775467c94dd003050758aa6f787b9133c20fb49a
parent 4b0dbe865b8e6ac8f78199152f3091e54bfa5a42
Author: aabacchus <ben@bvnf.space>
Date: Sat, 22 Apr 2023 03:38:25 +0100
rename to ckiss
Diffstat:
9 files changed, 25 insertions(+), 23 deletions(-)
diff --git a/README b/README
@@ -1,5 +1,8 @@
+# CKISS
+
An implementation of the kiss package manager in C.
+
[.] = partially implemented
[x] = fully implemented
diff --git a/src/.gitignore b/src/.gitignore
@@ -1,5 +1,4 @@
*.a
*.o
-test
-kiss
-kiss-test
+ckiss
+ckiss-test
diff --git a/src/Makefile b/src/Makefile
@@ -4,30 +4,30 @@ XCFLAGS = $(CFLAGS) -Wall -Wextra -Wshadow -pedantic -D_XOPEN_SOURCE=700 -Og -g
OBJS = utils.o list.o search.o
-all: kiss
+all: ckiss
-kiss: main.o libkiss.a
- $(CC) $(LDFLAGS) main.o libkiss.a -o $@
+ckiss: main.o libckiss.a
+ $(CC) $(LDFLAGS) main.o libckiss.a -o $@
-libkiss.a: $(OBJS)
+libckiss.a: $(OBJS)
$(AR) -rcs $@ $(OBJS)
.c.o:
$(CC) $(XCFLAGS) -c $< -o $@
-test: kiss-test
- ./kiss-test
+test: ckiss-test
+ ./ckiss-test
-kiss-test: test.o libkiss.a
- $(CC) $(LDFLAGS) test.o libkiss.a -o $@
+ckiss-test: test.o libckiss.a
+ $(CC) $(LDFLAGS) test.o libckiss.a -o $@
clean:
- rm -f libkiss.a test.o test $(OBJS) main.o kiss kiss-test
+ rm -f libckiss.a test.o test $(OBJS) main.o ckiss ckiss-test
.PHONY: clean test all
-utils.o: kiss.h
-test.o: kiss.h
-list.o: kiss.h
-search.o: kiss.h
-main.o: kiss.h
+utils.o: ckiss.h
+test.o: ckiss.h
+list.o: ckiss.h
+search.o: ckiss.h
+main.o: ckiss.h
diff --git a/src/kiss.h b/src/ckiss.h
diff --git a/src/list.c b/src/list.c
@@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "kiss.h"
+#include "ckiss.h"
void
pkg_print(char *pkg, struct env *e) {
diff --git a/src/main.c b/src/main.c
@@ -1,10 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
-#include "kiss.h"
+#include "ckiss.h"
noreturn void
usage(int r) {
- mylog("kiss [l|s|v] [pkg]...");
+ mylog("ckiss [l|s|v] [pkg]...");
mylog("list List installed packages");
mylog("search Search for packages");
mylog("version Package manager version");
diff --git a/src/search.c b/src/search.c
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include "kiss.h"
+#include "ckiss.h"
/* TODO: append sys_db to kiss_path */
int
diff --git a/src/test.c b/src/test.c
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include "kiss.h"
+#include "ckiss.h"
int
main(int argc, char **argv) {
diff --git a/src/utils.c b/src/utils.c
@@ -7,7 +7,7 @@
#include <sys/stat.h>
#include <time.h>
-#include "kiss.h"
+#include "ckiss.h"
static char *c1 = "", *c2 = "", *c3 = "";