From 5a1f48a0e93e26b72963eaeceb199719dcea2161 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 24 May 2016 09:03:22 +0200 Subject: manpage .1 -> .8 --- Makefile | 6 +++--- shutdownasap.1.in | 36 ++++++++++++++++++++++++++++++++++++ shutdownasap.8.in | 36 ------------------------------------ 3 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 shutdownasap.1.in delete mode 100644 shutdownasap.8.in diff --git a/Makefile b/Makefile index 626f88b..66fc67a 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ MANDIR = /usr/share/man VERSION = 0.3 -all: shutdownasap shutdownasap.conf shutdownasap.8 +all: shutdownasap shutdownasap.conf shutdownasap.1 %: %.in sed "s/#VERSION#/$(VERSION)/; s@#BINDIR#@$(BINDIR)@; s@#ETCDIR#@$(ETCDIR)@" $< > $@ @@ -35,11 +35,11 @@ all: shutdownasap shutdownasap.conf shutdownasap.8 install: all install -D -m0755 -t $(DESTDIR)$(BINDIR) shutdownasap - install -D -m0644 -t $(DESTDIR)$(MANDIR)/man8 shutdownasap.8 + install -D -m0644 -t $(DESTDIR)$(MANDIR)/man1 shutdownasap.1 install -D -m0644 -t $(DESTDIR)$(ETCDIR) shutdownasap.conf clean: - rm -f shutdownasap{,.8,.conf} + rm -f shutdownasap{,.1,.conf} dist: clean git status --porcelain 2> /dev/null | grep -q "\S" && (git add .; git commit -m"neue Version: $(VERSION)") || true diff --git a/shutdownasap.1.in b/shutdownasap.1.in new file mode 100644 index 0000000..34e3aad --- /dev/null +++ b/shutdownasap.1.in @@ -0,0 +1,36 @@ +.TH shutdownasap 8 "" "shutdownasap #VERSION#" "" +.SH NAME +shutdownasap \- simple script for \fBshutdown\fP waiting for certain processes and files to disapear +.SH SYNOPSIS +\fBshutdownasap\fP +.SH DESCRIPTION +\fBshutdownasap\fP shuts down the computer after a certain directory becomes empty and certain processes are not running. +For actually shutting down it calls \fBsudo shutdown\fP. +.SH CONFIGURATION +The configfile \fB#ETCDIR#/shutdownasap.conf\fP is a bash script, which defines the following variables and routines: +.TP +.B "pidFile" +file to store pid in +.TP +.B "waitForDir" +directory which must be empty before shutting down +.TP +.B "shutDownNoGos" +list of processes which must not be running before shutting down +.TP +.B "beforeWatchHook" +routine which is called after start of \fBshutdownasap\fP, before watching above conditions +.TP +.B "beforeShutDownHook" +routine which is called before shutting down +.SH FILES +.TP +.B "#BINDIR#/shutdownasap" +program file +.TP +.B "#ETCDIR#/shutdownasap.conf" +contains configuration +.SH AUTHOR +.nf +Erich Eckner +.fi diff --git a/shutdownasap.8.in b/shutdownasap.8.in deleted file mode 100644 index 34e3aad..0000000 --- a/shutdownasap.8.in +++ /dev/null @@ -1,36 +0,0 @@ -.TH shutdownasap 8 "" "shutdownasap #VERSION#" "" -.SH NAME -shutdownasap \- simple script for \fBshutdown\fP waiting for certain processes and files to disapear -.SH SYNOPSIS -\fBshutdownasap\fP -.SH DESCRIPTION -\fBshutdownasap\fP shuts down the computer after a certain directory becomes empty and certain processes are not running. -For actually shutting down it calls \fBsudo shutdown\fP. -.SH CONFIGURATION -The configfile \fB#ETCDIR#/shutdownasap.conf\fP is a bash script, which defines the following variables and routines: -.TP -.B "pidFile" -file to store pid in -.TP -.B "waitForDir" -directory which must be empty before shutting down -.TP -.B "shutDownNoGos" -list of processes which must not be running before shutting down -.TP -.B "beforeWatchHook" -routine which is called after start of \fBshutdownasap\fP, before watching above conditions -.TP -.B "beforeShutDownHook" -routine which is called before shutting down -.SH FILES -.TP -.B "#BINDIR#/shutdownasap" -program file -.TP -.B "#ETCDIR#/shutdownasap.conf" -contains configuration -.SH AUTHOR -.nf -Erich Eckner -.fi -- cgit v1.2.3-54-g00ecf