aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-09-28 08:08:38 +0200
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-09-28 08:08:38 +0200
commitb975b7392606050c1ed83a8cce016f872589ad38 (patch)
tree5c9e3de082700560d8b99a2436f06e55ed888993
parent434b226d340c284e26569d4dfae4a6cfdf08d483 (diff)
source moved
-rw-r--r--Makefile8
-rw-r--r--rpt.136
-rw-r--r--rpt.c (renamed from src/rpt.c)0
3 files changed, 40 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 405f968..fa63f68 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,11 @@ PREFIX = /usr/local
CFLAGS = -std=c99 -Wall -Wextra -pedantic -O0 -ggdb
BIN = rpt
-SRC = src/rpt.c
-OBJ = src/rpt.o
+SRC = rpt.c
+OBJ = rpt.o
-MAN_SRC = man/rpt.1
-MAN_PAGE = man/rpt.1.gz
+MAN_SRC = rpt.1
+MAN_PAGE = rpt.1.gz
.PHONY: all compile man clean install uninstall
diff --git a/rpt.1 b/rpt.1
new file mode 100644
index 0000000..49920a6
--- /dev/null
+++ b/rpt.1
@@ -0,0 +1,36 @@
+.\" Written by Tristan Riehs.
+.\" This file is part of repeat and is licensed under the MIT License.
+.TH rpt 1 2023-09-27
+
+.SH NAME
+rpt \- repeat a shell command
+
+.SH SYNOPSIS
+.B rpt
+
+.SH DESCRIPTION
+
+.SH OPTIONS
+
+.SH "EXIT STATUS"
+.1 Invalid option.
+
+.2 Error while reading
+.IR COUNT .
+
+.3
+.I COMMAND
+not provided.
+
+.SH FILES
+None.
+
+.SH "SEE ALSO"
+.BR seq (1)
+
+.SH BUGS
+Please report bugs at
+.IR https://gitlab.com/tristanriehs/repeat .
+
+.SH AUTHOR
+Tristan Riehs <tristanriehs@gmail.com>
diff --git a/src/rpt.c b/rpt.c
index 1a9a256..1a9a256 100644
--- a/src/rpt.c
+++ b/rpt.c