Advertisement
Guest User

java_desktop_files.sh

a guest
Nov 26th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Copies the Oracle Java desktop-related files to the system.
  4. #
  5. # Be sure the JAVA_INST_DIR is set correctly. Run as root.
  6. #
  7. # A better version of this would link all the files rather than copy
  8. # them, but I'm being lazy.
  9. #
  10. # Mithat Konar 2011-11-26
  11.  
  12. ### config ###
  13.  
  14. JAVA_INST_DIR="/opt/java/jdk/jre"
  15.  
  16. ### end config ###
  17.  
  18. mkdir -p /usr/local/share/applications
  19. mkdir -p /usr/local/share/icons
  20. mkdir -p /usr/local/share/mime
  21.  
  22. cp -rf $JAVA_INST_DIR/lib/desktop/* /usr/local/share
  23. update-mime-database /usr/local/share/mime
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement