summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-06 22:24:58 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-06 22:24:58 +0200
commiteafefb0c7965a048f53ffa3f86ea1db2cf065c47 (patch)
treee72141d7eb72ce3ee72e8b5e2f86cc1bf46db389
parentdaac5c780296fbbf1005fedb45ae790d567b2dcd (diff)
Add manpage
-rw-r--r--Makefile2
-rw-r--r--src/randsleep.144
2 files changed, 46 insertions, 0 deletions
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.