A simple blog generator for your ~
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.
 
 
 

29 lines
634 B

  1. #!/bin/bash
  2. echo "Installing squigglelog..."
  3. echo "Linking entries folder to $HOME/~entries"
  4. if [ ! -e $HOME/~entries ]; then
  5. ln -s $PWD/entries/ $HOME/~entries
  6. else
  7. echo "Folder already exists, skipping..."
  8. fi
  9. echo "Installing utility scripts..."
  10. if [ ! -e $HOME/bin ]; then
  11. EM="\033[1;33m"
  12. NC="\033[0m"
  13. echo "Creating bin/ folder"
  14. mkdir $HOME/bin
  15. echo -e "${EM}You may have to add this to your ~/.bashrc file:"
  16. echo -e "export PATH=${PATH}:$HOME/bin$NC"
  17. fi
  18. cp util/* $HOME/bin/
  19. echo "Building squigglelog..."
  20. go build squigglelog.go
  21. echo "Done!"
  22. echo
  23. echo "To get started, type squiggle.sh and write your first entry."