makefile and man

This commit is contained in:
Marco Raber 2022-04-27 20:10:50 +02:00
parent 6712ebfae9
commit 9241d2f96d
2 changed files with 43 additions and 0 deletions

23
Makefile Normal file
View File

@ -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

20
sshin.1 Normal file
View File

@ -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)