additions

This commit is contained in:
Marco 2022-04-14 11:25:23 +02:00
parent 2b479d89da
commit 58ae33b3b6
2 changed files with 52 additions and 0 deletions

23
Makefile Normal file
View File

@ -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

29
edocker.1 Normal file
View File

@ -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)