mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-25 18:32:22 +08:00
* Move SwipeCellKit & SlackTextViewController to Local Pods directory * Move playgrounds to own folder * Create podspec for MMMarkdown and move to Local Pods
25 lines
673 B
Bash
Executable File
25 lines
673 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Default the folder name
|
|
folderName="Slack Templates"
|
|
|
|
# Determine the source directory.
|
|
sourceDirectory=`dirname "$BASH_SOURCE"`
|
|
|
|
# Determine the install directory.
|
|
installDirectory=~/Library/Developer/Xcode/Templates/File\ Templates/"$folderName"
|
|
|
|
echo "Templates will be installed to $installDirectory"
|
|
|
|
# Delete the install directory if it already exists to prevent deleted files from lingering.
|
|
if [ -d "$installDirectory" ]
|
|
then
|
|
rm -r "$installDirectory"
|
|
fi
|
|
|
|
# Create the install directory.
|
|
mkdir -p "$installDirectory"
|
|
|
|
# Copy all of the xctemplate folders into the install directory.
|
|
cp -r "$sourceDirectory"/*.xctemplate "$installDirectory"
|