From fce94c1e44455c0215b8dc5b49bd1941c4fabe67 Mon Sep 17 00:00:00 2001 From: Difrex Date: Tue, 20 Jan 2015 12:03:34 +0300 Subject: [PATCH] Installation script --- install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..bc1bb75 --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +PWD=`pwd` +BIN_PATH=${HOME}/.local/bin + +mkdir -p $BIN_PATH + +cat > $BIN_PATH/pm << EOF +cd $PWD +./pm.pl "\$@" +cd - >/dev/null 2>/dev/null +EOF + +chmod +x $BIN_PATH/pm + +echo "Please add $BIN_PATH to your \$PATH variable"