mirror of
https://github.com/samsonjs/appleuniversal-xctemplates.git
synced 2026-03-25 08:55:53 +00:00
11 lines
No EOL
461 B
Bash
Executable file
11 lines
No EOL
461 B
Bash
Executable file
#!/usr/bin/env bash
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
TEMPLATES_DIR="$HOME/Library/Developer/Xcode/Templates/"
|
|
PROJECT_TEMPLATES_DIR="$TEMPLATES_DIR/Project Templates"
|
|
PROJECT_TEMPLATES_SRC_DIR="$DIR/Project Templates/Custom"
|
|
PROJECT_TEMPLATES_DST_DIR="$PROJECT_TEMPLATES_DIR/Custom"
|
|
mkdir -p "$PROJECT_TEMPLATES_DIR"
|
|
if [ ! \( -e "$PROJECT_TEMPLATES_DST_DIR" \) ]
|
|
then
|
|
ln -s "$PROJECT_TEMPLATES_SRC_DIR" "$PROJECT_TEMPLATES_DST_DIR"
|
|
fi |