commit 94f79d4693f360e67a24c112dfa5cef4a5c8b3ea
parent 2c0b390e2a9d0ae39d5161183e85543ccd7c1280
Author: Anton Konyahin <me@konyahin.xyz>
Date:   Sun,  9 Jan 2022 22:22:21 +0300
fix man page
Diffstat:
3 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/Makefile b/Makefile
@@ -9,7 +9,7 @@ LDFLAGS   = -s
 PREFIX    = /usr/local
 MANPREFIX = ${PREFIX}/share/man
 
-all: $(BIN)
+all: $(BIN) README.md
 
 strings.o: src/strings.c src/strings.h
 	$(CC) $(CFLAGS) -c src/strings.c
@@ -26,6 +26,9 @@ main.o : src/main.c src/config.h
 $(BIN): main.o files.o strings.o token.o
 	$(CC) main.o files.o strings.o token.o -o $(BIN)
 
+README.md: $(BIN).1
+	pandoc $(BIN).1 -o README.md
+
 clean:
 	rm -f $(BIN)
 	rm -f *.o
diff --git a/README.md b/README.md
@@ -6,7 +6,7 @@ sttemp - simple template manager
 
 **sttemp** \[**-h**\]
 
-**sttemp** \[**-e**\] **template** \[**output**\]
+**sttemp** \[**-e**\] *template* \[*output*\]
 
 # DESCRIPTION
 
@@ -35,8 +35,8 @@ for relative path from your home directory.
 
 **output**
 
-:   name of target file, if omit - sttemp will use template name
+:   name of target file, if omit - **sttemp** will use template name
 
 # AUTHOR
 
-Anton Konyahin \<me\@konyahin.xyz>
+Anton Konyahin \<*me\@konyahin.xyz*\>
diff --git a/sttemp.1 b/sttemp.1
@@ -1,17 +1,14 @@
 .TH STTEMP 1 2021-01-09 V1.0
-
 .SH NAME
 sttemp \- simple template manager
-
 .SH SYNOPSIS
 .B sttemp
 [\fB\-h\fR]
 
 .B sttemp
 [\fB\-e\fR]
-\fBtemplate\fR
-[\fBoutput\fR]
-
+\fItemplate\fR
+[\fIoutput\fR]
 .SH DESCRIPTION
 .B sttemp
 copy file from your template directory and fill all 
@@ -20,7 +17,6 @@ Template directory and substitution pattern described in
 \fBsrc/config.h\fR file, in suckless style. You can use
 \fB~\fR as \fBfirst\fR symbol of your path, for relative
 path from your home directory.
-
 .SH OPTIONS
 .TP
 .BI \-h
@@ -36,7 +32,6 @@ name of file in your templates directory, which will use
 to create new file
 .TP
 .BI output
-name of target file, if omit - sttemp will use template name
-
+name of target file, if omit - \fBsttemp\fR will use template name
 .SH AUTHOR
-Anton Konyahin <me@konyahin.xyz>
+Anton Konyahin <\fIme@konyahin.xyz\fR>