Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 60 lines (51 sloc) 1.394 kb
#! /bin/bash
#! Created by Sumeru Chatterjee
set -u
set -e
# Assume this script was called normally and hasn't been added to the path or symlinked
SCRIPT_DIR=$(dirname "$0")
if [[ $SCRIPT_DIR != /* ]]; then
if [[ $SCRIPT_DIR == "." ]]; then
SCRIPT_DIR=$PWD
else
SCRIPT_DIR=$PWD/$SCRIPT_DIR
fi
fi
LOCAL_DEVELOPER_PATH="$HOME/Library/Developer"
TEMPLATES_DIR="Project Templates"
TEMPLATES_SRC_PATH="$SCRIPT_DIR/$TEMPLATES_DIR"
TEMPLATES_DST_PATH="$LOCAL_DEVELOPER_PATH/Xcode/Templates/Application/$TEMPLATES_DIR"
echo "BeachFrontBuilder Template Installer"
echo "==================================="
echo
echo "This will install the iOS BeachFrontBuilder App templates on your computer."
echo
echo " SOURCE - $TEMPLATES_SRC_PATH"
echo " DESTINATION - $TEMPLATES_DST_PATH"
echo
read -p "continue [y/N]: " answer
echo
if [ "$answer" != "Y" ] && [ "$answer" != "y" ]; then
echo
echo "[ Cancelled ]"
echo
exit 1
fi
# Install templates
echo
echo "[ Installing templates ]"
echo
echo mkdir -p "$TEMPLATES_DST_PATH"
mkdir -p "$TEMPLATES_DST_PATH"
cd "$TEMPLATES_SRC_PATH"
for template in *; do
installpath="$TEMPLATES_DST_PATH/$template"
echo rm -rf "$installpath"
rm -rf "$installpath"
echo cp -R "$template" "$installpath"
cp -R "$template" "$installpath"
done
echo
echo
echo "[ Installation complete. Please restart Xcode. ]"
echo
Jump to Line
Something went wrong with that request. Please try again.