Skip to content
Permalink
Browse files

Update install, uninstall scripts

  • Loading branch information...
nickolasburr committed Nov 8, 2017
1 parent 0e83adb commit 60333ad2d1539d60e0cf8bd6465011eb7eb7506d
Showing with 30 additions and 6 deletions.
  1. +17 −3 tools/install.sh
  2. +13 −3 tools/uninstall.sh
@@ -1,5 +1,19 @@
#!/bin/sh

###
### @todo: Build out install script.
###
set -ex

PREFIX=/usr/local
BINDIR=$PREFIX/bin

TARGET="keuka"
MANPAGE="$TARGET.1.gz"
MANDEST=$PREFIX/share/man/man1

INSTALL=/usr/bin/install
OPTIONS="-c"

cd ..

cp "man/$MANPAGE" "$MANDEST/$MANPAGE"

eval "$INSTALL $OPTIONS $TARGET $BINDIR/$TARGET"
@@ -1,5 +1,15 @@
#!/bin/sh

###
### @todo: Build out uninstall script.
###
set -ex

PREFIX=/usr/local
BINDIR=$PREFIX/bin

RM="rm"
RMFLAGS="-rf"

TARGET="keuka"
MANPAGE="$TARGET.1.gz"
MANDEST=$PREFIX/share/man/man1

eval "$RM $RMFLAGS $BINDIR/$TARGET $MANDEST/$MANPAGE"

0 comments on commit 60333ad

Please sign in to comment.
You can’t perform that action at this time.