Skip to content

Commit

Permalink
Fix doc generation, bump version to 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
GregTheMadMonk committed Jan 28, 2021
1 parent 1f7d6e0 commit 49a9443
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.10)

project(noaftodo VERSION 1.4.4)
project(noaftodo VERSION 1.4.5)

# use C++ 17
set(CXX_STANDART 17)
Expand Down
10 changes: 3 additions & 7 deletions tools/docgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ std::string TCONF = \"%s\";" \
"$(sed 's/\\/\\\\/g' $DIR/noaftodo.conf.template | sed ':a;N;$!ba;s/\n/\\n/g' | sed 's/\"/\\"/g')" \
> gen/src/noaftodo_embed.cpp

LIST_V=$(grep ' LIST_V = ' $DIR/src/noaftodo.h | sed 's/.*LIST_V = //g;s/\;//g')
CONF_V=$(grep ' CONF_V = ' $DIR/src/noaftodo.h | sed 's/.*CONF_V = //g;s/\;//g')
PATCH_V=$(grep ' PATCH_V = ' $DIR/src/noaftodo.h | sed 's/.*PATCH_V = //g;s/\;//g')
VERSION=$(grep "noaftodo VERSION" $DIR/CMakeLists.txt | sed 's/^.*VERSION //g;s/)$//g')

printf ".TH NOAFTODO 1 \"July 2020\" \"%s.%s.%s\" \"NOAFtodo man page\"
printf ".TH NOAFTODO 1 \"$(date +%B\ %Y)\" \"%s\" \"NOAFtodo man page\"
.SH NAME
NOAFtodo
A TODO manager No-One-Asked-For.
Expand Down Expand Up @@ -65,9 +63,7 @@ Status fields are specified in \"norm.status_fields\" and \"livi.status_fields\"
Apology for bad english and probably not very useful manpage.
.I
<3 Y'all! Peace!" \
"$LIST_V" \
"$CONF_V" \
"$PATCH_V" \
"$VERSION" \
"$(sed '1d;s/\t//g;s/-/\\-/g;0~2s/^/.HP\n/g;0~2s/$/\n.IP/g' gen/doc/arg.doc.gen)" \
"$(sed '1d;s/\t//g;s/-/\\-/g;0~2s/^/.HP\n.B\n/g;0~2s/$/\n.IP/g' gen/doc/cmd.doc.gen)" \
"$(sed 's/\t//g;s/-/\\-/g;1~2s/^/.HP\n.B\n/g;1~2s/$/\n.IP/g' gen/doc/cols.norm.doc.gen)" \
Expand Down
2 changes: 1 addition & 1 deletion tools/wiki-manpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ printf "
\`\`\`
%s
\`\`\`" \
"$(roff2text doc/noaftodo.man)" | sed 's/.//g' > ../noaftodo.wiki/NOAFtodo-manpage.md
"$(roff2text $1/doc/noaftodo.man)" | sed 's/.//g' > ../noaftodo.wiki/NOAFtodo-manpage.md

0 comments on commit 49a9443

Please sign in to comment.