mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-09-11 20:57:11 +03:00
20 lines
350 B
Bash
Executable File
20 lines
350 B
Bash
Executable File
#!/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}"
|