From eafefb0c7965a048f53ffa3f86ea1db2cf065c47 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 6 Jul 2011 22:24:58 +0200 Subject: Add manpage --- Makefile | 2 ++ src/randsleep.1 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 src/randsleep.1 diff --git a/Makefile b/Makefile index 765a697..ed55e64 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ src/randsleep: src/randsleep.c ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $< install: src/randsleep + install -m 755 src/randsleep ${bin_dir} + install -m 644 src/randsleep.1 ${man_dir}/man1 uninstall: rm -f src/randsleep diff --git a/src/randsleep.1 b/src/randsleep.1 new file mode 100644 index 0000000..0868c60 --- /dev/null +++ b/src/randsleep.1 @@ -0,0 +1,44 @@ +.Dd July 06, 2011 +.Dt RANDSLEEP 1 +.Os +. +. +.Sh NAME +. +.Nm randsleep +.Nd Execute program after sleeping for a random time +. +. +.Sh SYNOPSIS +. +.Nm +.Ar time command args ... +. +. +.Sh VERSION +. +This manual documents +.Nm +version 0.0 +. +. +.Sh DESCRIPTION +. +.Nm +executes +.Ar command +after sleeping for up to +.Ar time +seconds. +It is intended for use in cronjobs and similar. +. +. +.Sh AUTHOR +. +Copyright (C) 2011 Daniel Friesel +.Aq derf@finalrewind.org . +. +. +.Sh LICENSE +. +You just DO WHAT THE FUCK YOU WANT TO. -- cgit v1.2.3