summaryrefslogtreecommitdiff
path: root/xcodegen/install.sh
blob: 399e375f2cc41a12c28ad2242b8abdb97b85ffda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# name:
#   install.sh
#
# description:
#   Install XcodeGen to /usr/local
#
#     - /usr/local/bin/xcodegen
#     - /usr/local/share/xcodegen/SettingPresets
#
# parameters:
#   - 1: install location

PREFIX=${PREFIX:-${1:-/usr/local}}
BASE_DIR=$(cd `dirname $0`; pwd)

cp -r $BASE_DIR/share "${PREFIX}"
cp -r $BASE_DIR/bin "${PREFIX}"