Browse Source

Created an install script

master
Antoine COMBET 3 years ago
parent
commit
1f82914dc5
  1. 22
      install.sh

22
install.sh

@ -0,0 +1,22 @@
#!/bin/sh
if [ "$1" = "-h" ]
then
echo "Usage:"
echo $0
echo " install in default location (/usr/local)"
echo " may require root privileges"
echo "$0 <prefix>"
echo " install at the specified prefix"
exit 1;
fi
if [ "s$1" = "s" ]
then
INSTALL_PREFIX=/usr/local
else
INSTALL_PREFIX=$1
fi
install -m 644 ./todo.1 $INSTALL_PREFIX/share/man/man1/todo.1
install -m 755 ./todo $INSTALL_PREFIX/bin/todo
Loading…
Cancel
Save