Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -e
- fontDir="$HOME/Library/Fonts"
- chartsDir="$HOME/Library/Application Support/Microsoft/Office/Chart Templates"
- themesDir="$HOME/Library/Application Support/Microsoft/Office/User Templates/My Themes"
- templatesDir="$HOME/Library/Application Support/Microsoft/Office/User Templates/My Templates"
- destinationDirs=("${fontDir}" "${chartsDir}" "${themesDir}" "${templatesDir}")
- # Create directories if they don't exist
- for dir in "${destinationDirs[@]}"
- do
- if [ ! -d "$dir" ]
- then
- basePath=`basename "$dir"`
- printf "Creating %s directory.\n" "$basePath"
- mkdir -p "$dir"
- fi
- done
- echo "Copying files . . ."
- cp -R fonts/ "${fontsDir}"
- cp colors/451_colors.xml "${templatesDir}"
- cp template/451_Research.pptx "${templatesDir}"
- cp theme/451_Reasearch.thmx "${themesDir}"
- cp -R charts/ "${chartsDir}"
- echo "Finished!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement