INSTALL 554 B

12345678910111213141516171819
  1. #!/bin/bash
  2. #To install using this script:
  3. #chmod 700 INSTALL
  4. #then run by typing ./INSTALL as root or with sudo.
  5. # If you want to install by hand, just copy the commands below the word fi that ends the if statement below. Exclude the exit 0 statement.
  6. if [[ $(whoami) != "root" ]] ; then
  7. echo "Need to be root."
  8. exit 1
  9. fi
  10. cp src/talking-clock /usr/bin/talking-clock
  11. chmod 755 /usr/bin/talking-clock
  12. mkdir -p /usr/share/talking-clock/
  13. cp src/{bell,prepend,15,30,45}.ogg /usr/share/talking-clock/
  14. cp README.md /usr/share/talking-clock/README.md
  15. exit 0