]> git.armaanb.net Git - mmenu.git/commitdiff
Add manpage
authorArmaan Bhojwani <me@armaanb.net>
Sun, 9 May 2021 03:30:12 +0000 (23:30 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 9 May 2021 03:30:12 +0000 (23:30 -0400)
.gitignore
Makefile
README
mmenu.1.scd [new file with mode: 0644]

index 7e022e9f6ca3b809e1ed7ed5111730c09c9f3214..c34b060db4c893ed54a5a20607201cb104ed729f 100644 (file)
@@ -1 +1,2 @@
 mmenu
+mmenu.1
index a3f6c01f11242cf8d44e2b06031c3f2c2469d0c9..b82d881f024f42e0b96753eae349712dc7f806ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
 all:
        ${CC} mmenu.c -o mmenu -lXm -lXt -lcurl ${LDFLAGS} -std=c99 ${CFLAGS} -Wall \
                -Wextra
+       scdoc < mmenu.1.scd > mmenu.1
 
 install:
+       mkdir -p /usr/local/bin /usr/local/man
        cp mmenu /usr/local/bin/mmenu
+       cp mmenu.1 /usr/local/man/man1/mmenu.1
 
 uninstall:
        rm /usr/local/bin/mmenu
+       rm /usr/local/man/man1/mmenu.1
diff --git a/README b/README
index 0b8fd68b80756c1b61262ab9f1abb15a1006c06a..34871a7b5d13e9ec07f6618ce2dfc47447c4b193 100644 (file)
--- a/README
+++ b/README
@@ -4,7 +4,7 @@ mmenu
 View the castle menu.
 
 Nobilis doesn't always work, thus, this program doesn't always work. Best of
-luck to those who try and use this program.
+luck to those who try to use this program.
 
 Dependencies:
        - C99
diff --git a/mmenu.1.scd b/mmenu.1.scd
new file mode 100644 (file)
index 0000000..3cdd725
--- /dev/null
@@ -0,0 +1,14 @@
+mmenu(1)
+
+# NAME
+mmenu - view the castle menu
+
+# SYNOPSIS
+*mmenu*
+
+# DESCRIPTION
+The *mmenu* utility uses Nobilis in order to display the castle menu. There is
+no real command line interface, and the GUI is programmed in Motif.
+
+# LICENSE
+MIT License, Armaan Bhojwani 2021.