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

  1. #!/bin/sh
  2. if [ "$1" = "-h" ]
  3. then
  4. echo "Usage:"
  5. echo $0
  6. echo " install in default location (/usr/local)"
  7. echo " may require root privileges"
  8. echo "$0 <prefix>"
  9. echo " install at the specified prefix"
  10. exit 1;
  11. fi
  12. if [ "s$1" = "s" ]
  13. then
  14. INSTALL_PREFIX=/usr/local
  15. else
  16. INSTALL_PREFIX=$1
  17. fi
  18. mkdir -p $INSTALL_PREFIX/share/man/man1
  19. mkdir -p $INSTALL_PREFIX/bin
  20. install -m 644 ./todo.1 $INSTALL_PREFIX/share/man/man1/todo.1
  21. install -m 755 ./todo $INSTALL_PREFIX/bin/todo