Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #!/bin/bash -e
  2.  
  3. fontDir="$HOME/Library/Fonts"
  4. chartsDir="$HOME/Library/Application Support/Microsoft/Office/Chart Templates"
  5. themesDir="$HOME/Library/Application Support/Microsoft/Office/User Templates/My Themes"
  6. templatesDir="$HOME/Library/Application Support/Microsoft/Office/User Templates/My Templates"
  7. destinationDirs=("${fontDir}" "${chartsDir}" "${themesDir}" "${templatesDir}")
  8.  
  9. # Create directories if they don't exist
  10. for dir in "${destinationDirs[@]}"
  11. do
  12. if [ ! -d "$dir" ]
  13. then
  14. basePath=`basename "$dir"`
  15. printf "Creating %s directory.\n" "$basePath"
  16. mkdir -p "$dir"
  17. fi
  18. done
  19.  
  20. echo "Copying files . . ."
  21. cp -R fonts/ "${fontsDir}"
  22. cp colors/451_colors.xml "${templatesDir}"
  23. cp template/451_Research.pptx "${templatesDir}"
  24. cp theme/451_Reasearch.thmx "${themesDir}"
  25. cp -R charts/ "${chartsDir}"
  26.  
  27. echo "Finished!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement