lorid

convert chordpro to pdf
git clone git://git.relim.de/lorid.git
Log | Files | Refs | README | LICENSE

commit a2b5b214ba55c25c224975571a08d0ff751dada0
parent e1f9c3cb8e52b848dd3b4998b12acbccebfb43cd
Author: nibo <nibo@relim.de>
Date:   Fri, 11 Oct 2024 18:17:44 +0200

Merge branch 'docs'

Diffstat:
MMakefile | 4++++
Alorid.1 | 18++++++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,6 @@ VERSION = 0.1.0 PREFIX = /usr/local +MANPREFIX = ${PREFIX}/share/man CFLAGS = -pedantic -Wall -Wextra -DVERSION=\"${VERSION}\" LDFLAGS = -lpdfio -ltoml -lfontconfig SRC = util.c fontconfig.c config.c chordpro.c out_pdf.c lorid.c @@ -29,8 +30,11 @@ install: all lib ln -f -s ${PREFIX}/lib/liblorid.so.${VERSION} ${PREFIX}/lib/liblorid.so mkdir -p ${PREFIX}/include cp lorid.h ${PREFIX}/include + mkdir -p ${MANPREFIX}/man1 + cp lorid.1 ${MANPREFIX}/man1/lorid.1 uninstall: rm ${PREFIX}/bin/lorid rm ${PREFIX}/lib/liblorid.so* rm ${PREFIX}/include/lorid.h + rm ${MANPREFIX}/man1/lorid.1 .PHONY: all debug clean fontconfig parser lib install uninstall diff --git a/lorid.1 b/lorid.1 @@ -0,0 +1,18 @@ +.TH LORID "1" "September 2024" "User Commands" +.SH NAME +lorid \- convert chordpro to pdf +.SH SYNOPSIS +.B lorid +[-p] [-c] [-v] [-h] [-o \fI\,path\/\fR] [\fI\,filepath\/\fR] +.SH DESCRIPTION +.PP +.B lorid +reads text from +.I filepath +and if it wasn't provided than from stdin. +The text will be parsed according to the chordpro specification +and then converted to pdf. These two steps can be altered by +changing the configuration file. +.SH CHORDPRO +.PP +You can find the chordpro specification at https://www.chordpro.org/chordpro/.