Advertisement
Guest User

smarty.sh

a guest
Mar 10th, 2014
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Installation script, run it as a normal user
  4. # ############################################
  5.  
  6.  
  7. # HANDLING OF THE LANG FILE
  8.  
  9. # This is the directory where we need to put the syntax file.
  10. # Change to "gtksourceview-2.0" if you're using Gnome 2.x
  11. rep=$HOME/.local/share/gtksourceview-3.0/language-specs
  12.  
  13. # We create it if it doesn't exist yet.
  14. mkdir -p $rep
  15.  
  16. # We copy the file to its final destination.
  17. cp ./smarty.lang "$rep/smarty.lang"
  18.  
  19.  
  20.  
  21. # HANDLING OF THE XML FILE
  22. # We need to declare a new mime type.
  23.  
  24. rep_mime=$HOME/.local/share/mime/packages
  25. mkdir -p $rep_mime
  26. cp ./smarty.xml "$rep_mime/smarty.xml"
  27.  
  28. # We need to update the mime database to allow the handling
  29. # of smarty template files.
  30. update-mime-database $HOME/.local/share/mime
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement