install-gtksourceviewlang.sh 368 B

12345678910111213
  1. #!/bin/sh
  2. # This script installs the gtksourceview language specification for squirrel
  3. # (and the .nut mimetype)
  4. specdir="$HOME/.gnome2/gtksourceview-1.0/language-specs"
  5. mkdir -pv "$specdir"
  6. cp -p squirrel.lang "$specdir"
  7. test -z "$XDG_DATA_HOME" && XDG_DATA_HOME="$HOME/.local/share"
  8. MIMEDIR="$XDG_DATA_HOME/mime"
  9. mkdir -pv "$MIMEDIR"
  10. cp -p squirrel.xml "$MIMEDIR"