install.sh 1.1 KB

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. # installation script for note - must be ran as root
  3. # Copyright ©2013-2023 Jason Trunks
  4. # https://notabug.org/JasKinasis/note
  5. # This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  6. # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  7. # You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
  8. # Installation paths
  9. INSTALLDIR="/usr/local/bin"
  10. MANDIR="/usr/local/share/man"
  11. COMPLETIONDIR="/etc/bash_completion.d"
  12. # Ensure paths exist
  13. mkdir -p ${INSTALLDIR}
  14. mkdir -p ${MANDIR}/man1
  15. mkdir -p ${COMPLETIONDIR}
  16. # Copy files
  17. cp ./src/note ./src/notesettings ${INSTALLDIR}
  18. cp ./doc/note.1 ./doc/notesettings.1 ${MANDIR}/man1
  19. cp ./completion/note ${COMPLETIONDIR}