From 9241d2f96da81cafbccf816c571b0acd37a01896 Mon Sep 17 00:00:00 2001 From: Marco Raber Date: Wed, 27 Apr 2022 20:10:50 +0200 Subject: [PATCH] makefile and man --- Makefile | 23 +++++++++++++++++++++++ sshin.1 | 20 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 Makefile create mode 100644 sshin.1 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..465b5ff --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +# sshin - ssh in +# 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 sshin $(PREFIX)/bin + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + cp sshin.1 $(DESTDIR)$(MANPREFIX)/man1 + + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/sshin + rm -f $(DESTDIR)$(MANPREFIX)/man1/sshin.1 diff --git a/sshin.1 b/sshin.1 new file mode 100644 index 0000000..229f6d2 --- /dev/null +++ b/sshin.1 @@ -0,0 +1,20 @@ +.\" Manpage for sshin - ssh in +.\" Contact marco@raber.me to correct errors or typos. +.TH man 8 "27 April 2022" "1.0" "sshin man page" +.SH NAME +sshin \- ssh in(to a machine) +.SH SYNOPSIS +sshin [USER] [last byte of IP address OR hostname] +.SH DESCRIPTION +sshin is a script that simplifies ssh connection. NO MORE REACHING FOR THE @ SYMBOL USED BY THE UTTERLY DERANGED +.SH OPTIONS +sshin options: +.TP +.B \-h +Display help +.SH SEE ALSO +ssh +.SH BUGS +eh ditemeli voi +.SH AUTHOR +Marco Raber (marco@raber.me)