summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-12 22:06:56 -0500
committerJune McEnroe <june@causal.agency>2021-01-12 22:06:56 -0500
commitd5727a5964c859359c0b6e4fcf5b4e91ec8f4569 (patch)
tree8ae2001f305e343a1f73dd34cb2b9d545de571ec /bin
parentConsolidate hilex formatters into hilex.c (diff)
downloadsrc-d5727a5964c859359c0b6e4fcf5b4e91ec8f4569.tar.gz
src-d5727a5964c859359c0b6e4fcf5b4e91ec8f4569.zip
Move hilex out of hilex directory
Diffstat (limited to 'bin')
-rw-r--r--bin/.gitignore1
-rw-r--r--bin/Makefile12
-rw-r--r--bin/README.72
-rw-r--r--bin/c11.l (renamed from bin/hilex/c.l)0
-rw-r--r--bin/hilex.c (renamed from bin/hilex/hilex.c)0
-rw-r--r--bin/hilex.h (renamed from bin/hilex/hilex.h)0
-rw-r--r--bin/hilex/.gitignore2
-rw-r--r--bin/hilex/Makefile15
-rw-r--r--bin/make.l (renamed from bin/hilex/make.l)0
-rw-r--r--bin/man1/hilex.1 (renamed from bin/hilex/hilex.1)0
-rw-r--r--bin/mdoc.l (renamed from bin/hilex/mdoc.l)0
-rw-r--r--bin/text.l (renamed from bin/hilex/text.l)0
12 files changed, 15 insertions, 17 deletions
diff --git a/bin/.gitignore b/bin/.gitignore
index 02f47efe..4fe5b9b2 100644
--- a/bin/.gitignore
+++ b/bin/.gitignore
@@ -12,6 +12,7 @@ fbatt
 fbclock
 glitch
 hi
+hilex
 hnel
 htagml
 htmltags
diff --git a/bin/Makefile b/bin/Makefile
index 8e0cb324..9b2c06d4 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -26,6 +26,7 @@ BINS += c
 BINS += dtch
 BINS += glitch
 BINS += hi
+BINS += hilex
 BINS += hnel
 BINS += htagml
 BINS += modem
@@ -83,6 +84,17 @@ hi: hi.c
 	${CC} ${CFLAGS} ${LDFLAGS} hi.c ${LDLIBS.$@} -o $@
 	./hi -c
 
+OBJS.hilex += c11.o
+OBJS.hilex += hilex.o
+OBJS.hilex += make.o
+OBJS.hilex += mdoc.o
+OBJS.hilex += text.o
+
+hilex: ${OBJS.hilex}
+	${CC} ${LDFLAGS} ${OBJS.$@} ${LDLIBS.$@} -o $@
+
+${OBJS.hilex}: hilex.h
+
 open pbcopy pbpaste: pbd
 	ln -f pbd $@
 
diff --git a/bin/README.7 b/bin/README.7
index 31acdde5..d4cf26e8 100644
--- a/bin/README.7
+++ b/bin/README.7
@@ -38,6 +38,8 @@ framebuffer clock
 PNG glitcher
 .It Xr hi 1
 syntax highlighter
+.It Xr hilex 1
+syntax highlighter
 .It Xr hnel 1
 PTY input remapper
 .It Xr htagml 1
diff --git a/bin/hilex/c.l b/bin/c11.l
index 21e7d44b..21e7d44b 100644
--- a/bin/hilex/c.l
+++ b/bin/c11.l
diff --git a/bin/hilex/hilex.c b/bin/hilex.c
index ccbfa8ad..ccbfa8ad 100644
--- a/bin/hilex/hilex.c
+++ b/bin/hilex.c
diff --git a/bin/hilex/hilex.h b/bin/hilex.h
index 5998e6a4..5998e6a4 100644
--- a/bin/hilex/hilex.h
+++ b/bin/hilex.h
diff --git a/bin/hilex/.gitignore b/bin/hilex/.gitignore
deleted file mode 100644
index f4c89460..00000000
--- a/bin/hilex/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*.o
-hilex
diff --git a/bin/hilex/Makefile b/bin/hilex/Makefile
deleted file mode 100644
index e7972425..00000000
--- a/bin/hilex/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
-
-OBJS += c.o
-OBJS += hilex.o
-OBJS += make.o
-OBJS += mdoc.o
-OBJS += text.o
-
-hilex: ${OBJS}
-	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
-
-${OBJS}: hilex.h
-
-clean:
-	rm -f hilex ${OBJS}
diff --git a/bin/hilex/make.l b/bin/make.l
index e7f3def5..e7f3def5 100644
--- a/bin/hilex/make.l
+++ b/bin/make.l
diff --git a/bin/hilex/hilex.1 b/bin/man1/hilex.1
index 858c8565..858c8565 100644
--- a/bin/hilex/hilex.1
+++ b/bin/man1/hilex.1
diff --git a/bin/hilex/mdoc.l b/bin/mdoc.l
index a31b6a2e..a31b6a2e 100644
--- a/bin/hilex/mdoc.l
+++ b/bin/mdoc.l
diff --git a/bin/hilex/text.l b/bin/text.l
index e3d64814..e3d64814 100644
--- a/bin/hilex/text.l
+++ b/bin/text.l