From 58ae33b3b6055d0be004f1ec6073c2a7699b6302 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 14 Apr 2022 11:25:23 +0200 Subject: [PATCH] additions --- Makefile | 23 +++++++++++++++++++++++ edocker.1 | 29 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 Makefile create mode 100644 edocker.1 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..078afb8 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +# edocker - docker (compose) edit +# See LICENSE file for copyright and license details. + +# paths +PREFIX = /home/${USER}/.local +MANPREFIX = $(PREFIX)/share/man +SHELL = bash + +SRC = drw.c dmenu.c stest.c util.c +OBJ = $(SRC:.c=.o) + +all: install + +install: + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp edocker $(PREFIX)/bin + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + cp edocker.1 $(DESTDIR)$(MANPREFIX)/man1 + + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/edocker + rm -f $(DESTDIR)$(MANPREFIX)/man1/edocker.1 diff --git a/edocker.1 b/edocker.1 new file mode 100644 index 0000000..a2393ac --- /dev/null +++ b/edocker.1 @@ -0,0 +1,29 @@ +.\" Manpage for ne - nginx edit. +.\" Contact marco@raber.me to correct errors or typos. +.TH man 8 "9 April 2022" "1.0" "ne man page" +.SH NAME +ne \- edit nginx conf +.SH SYNOPSIS +ne [FILENAME] [-y] [-c EDITOR] [-p sudo] +.SH DESCRIPTION +ne is a script that launches your preferred text editor to edit the nginx configuration. Once you close the editor it will perform a check on the conf and, if asked to, makes nginx reload the configuration. +.SH OPTIONS +ne options: +.TP +.B \-h +Display usage +.TP +.B \-y +ne does not ask for confirmation to reload the nginx conf +.TP +.B \-c [text editor] +ne asks what text editor to use +.TP +.B \-p [program] +ne asks what program to use for privileges escalation. e.g. sudo or doas +.SH SEE ALSO +nginx +.SH BUGS +eh ditemeli voi +.SH AUTHOR +Marco Raber (marco@raber.me)