Installation script

This commit is contained in:
Difrex 2015-01-20 12:03:34 +03:00
parent e9b88a0942
commit fce94c1e44

16
install.sh Executable file
View File

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