Advertisement
Guest User

Untitled

a guest
Apr 11th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. # extract archives
  2. wget -r http://arkandis.tuxfamily.org/
  3. mkdir tmp
  4. find arkandis.tuxfamily.org -name '*\.zip' -exec cp {} tmp \;
  5. cd tmp
  6. for i in *\.zip
  7. do
  8.     unzip $i
  9. done
  10. rm -f *\.zip
  11.  
  12. # copy fonts
  13. BASE=../texmf-dist/fonts
  14. mkdir -p $BASE
  15. #   sfd
  16. mkdir -p $BASE/sfd/public/adf
  17. find . -name '*\.sfd' -exec cp {} $BASE/sfd/public/adf \;
  18. #   type1
  19. mkdir -p $BASE/type1/public/adf
  20. find . -name '*\.pfb' -exec cp {} $BASE/type1/public/adf \;
  21. find . -name '*\.pfm' -exec cp {} $BASE/type1/public/adf \;
  22. #   afm
  23. mkdir -p $BASE/afm/public/adf
  24. find . -name '*\.afm' -exec cp {} $BASE/afm/public/adf \;
  25. #   truetype
  26. mkdir -p $BASE/truetype/public/adf
  27. find . -name '*\.ttf' -exec cp {} $BASE/truetype/public/adf \;
  28. find . -name '*\.ttc' -exec cp {} $BASE/truetype/public/adf \;
  29. #   opentype
  30. mkdir -p $BASE/opentype/public/adf
  31. find . -name '*\.otf' -exec cp {} $BASE/opentype/public/adf \;
  32. #TODO#   web
  33. #TODOmkdir -p fonts/web/public/adf
  34. #TODOfind . -name '*\.woff' -exec cp {} fonts/web/public/adf \;
  35.  
  36. # fix modes
  37. find $BASE -type f -exec chmod a-x {} \;
  38.  
  39. # clean up
  40. cd ..
  41. rm -rf arkandis.tuxfamily.org tmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement