additions
This commit is contained in:
parent
2b479d89da
commit
58ae33b3b6
23
Makefile
Normal file
23
Makefile
Normal 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
29
edocker.1
Normal 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)
|
Loading…
Reference in New Issue
Block a user