Compare commits

..

No commits in common. "56feb746efbbbd4303a8257fad6ac8dda31d563d" and "c67a0e78eb94d630a2c3527afbdd19846ed866b8" have entirely different histories.

5 changed files with 51 additions and 37 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
build/ hr
hr.1.gz

View File

@ -1,15 +1,9 @@
PREFIX ?= /usr/local PREFIX := "$$HOME/.local"
SRCDIR = src
BUILDDIR = build
all: all:
nimble build -d:release nimble build
gzip -9ck $(SRCDIR)/hr.1 > $(BUILDDIR)/hr.1.gz rst2man src/hr.1.rst | gzip -9 -c > hr.1.gz
install: install:
install -Dm755 $(BUILDDIR)/hr $(PREFIX)/bin/hr install -D hr $(PREFIX)/bin/hr
install -Dm644 $(BUILDDIR)/hr.1.gz $(PREFIX)/share/man/man1/hr.1.gz install -D hr.1.gz $(PREFIX)/share/man/man1/hr.1.gz
uninstall:
rm -v $(PREFIX)/bin/hr
rm -v $(PREFIX)/share/man/man1/hr.1.gz

View File

@ -5,7 +5,6 @@ author = "ge"
description = "A horizontal ruler for your terminal" description = "A horizontal ruler for your terminal"
license = "Unlicense" license = "Unlicense"
srcDir = "src" srcDir = "src"
binDir = "build"
bin = @["hr"] bin = @["hr"]

View File

@ -1,24 +0,0 @@
.\" vim: set filetype=groff:
.TH HR 1 "2023-02-13" "hr 0.1.0"
.SH NAME
hr - A horizontal ruler for your terminal.
.SH SYNOPSYS
.SY hr
.BI [ string ]...
.YS
.SH DESCRIPTION
.PP
Print line with passed characters till the end of terminal window.
.SH EXAMPLES
.EX
$ hr +
++++++++++++++++++++++++++++++++++++++++++++++++
$ hr x0
x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0
$ hr = + =
================================================
------------------------------------------------
================================================
.EE
.SH SEE ALSO
.BR ncurses (3X)

44
src/hr.1.rst Normal file
View File

@ -0,0 +1,44 @@
==
hr
==
------------------------------------
A horizontal ruler for your terminal
------------------------------------
:Author: ge
:Copyright: Unlicense
:Date: 2022 Jul 20
:Manual section: 1
:Version: baf 0.1.0
SYNOPSIS
========
hr <string>...
DESCRIPTION
===========
Print line with passed characters till the end of terminal window.
EXAMPLES
========
::
$ hr '*'
***************************************
$ hr '#--'
#--#--#--#--#--#--#--#--#--#--#--#--#--
$ hr + - +
++++++++++++++++++++++++++++++++++++++++
----------------------------------------
++++++++++++++++++++++++++++++++++++++++
SEE ALSO
========
``ncurses``\(3X)