utilies

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit af2933adebb0587ea9cd8c6d09244ad279c68edb
parent 3440adadd691f266b971ec4694a6e2878471ca85
Author: Taco-C <perian.forod@gmail.com>
Date:   Thu,  2 Jul 2020 00:15:30 +0200

Add rgc

Diffstat:
MREADME.md | 1+
Argc | 11+++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -8,6 +8,7 @@ A handful of (useful) scripts for unix-like systems. | `ealis.sh` | | Experimental Arch Linux Install Script for VirtualBox. | | `hangrep` | go (building) | From standard input, filter out single chinese characters to standard output. | | `ordur` | | Print the time as text. | +| `rgc` | | Groff to PDF compiler. | | `update-stagit.sh` | [stagit](https://git.codemadness.org/stagit/file/README.html) | Makes static html pages for all repos in `/srv/git/` into `/srv/http/`, and an index page. | | `wiktionaire` | `rofi` or `dmenu`, `surf` or another web browser. | Search for word on Wiktionary from the desktop. | diff --git a/rgc b/rgc @@ -0,0 +1,10 @@ +#!/bin/sh + +_compile() { + _output="$(basename "$1" .${1##*.}).pdf" + groff -ms -Tpdf -Kutf8 -P-pa4 -dpaper=a4 "$1" > $_output +} + +[ "$1" = "" ] && echo -e "The groff-compiler-wrapper\nUsage: rgc file" && exit + +_compile "$1"+ \ No newline at end of file