daily pastebin goal
60%
SHARE
TWEET

smarty.sh

a guest Mar 10th, 2014 209 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top