A CLI todo manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
527 B

#!/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
mkdir -p $INSTALL_PREFIX/share/man/man1
mkdir -p $INSTALL_PREFIX/bin
install -m 644 ./todo.1 $INSTALL_PREFIX/share/man/man1/todo.1
install -m 755 ./todo $INSTALL_PREFIX/bin/todo