Advertisement
Guest User

java_fonts.sh

a guest
Nov 26th, 2011
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Copies the Oracle Java fonts 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/jre"
  15.  
  16. ### end config ###
  17.  
  18. mkdir -p /usr/local/share/fonts/truetype/java
  19. cp -f $JAVA_INST_DIR/lib/fonts/* /usr/local/share/fonts/truetype/java
  20. fc-cache -fv
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement