mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
Add Swift dependency to bootstrap script
This commit is contained in:
parent
a86d08e538
commit
034d079d3c
1 changed files with 19 additions and 3 deletions
|
|
@ -8,11 +8,28 @@ SWIFT_DIR=swift-$SWIFT_VERSION-RELEASE-ubuntu20.04
|
||||||
SWIFT_FILENAME=$SWIFT_DIR.tar.gz
|
SWIFT_FILENAME=$SWIFT_DIR.tar.gz
|
||||||
|
|
||||||
if [[ $(uname) = "Linux" ]]; then
|
if [[ $(uname) = "Linux" ]]; then
|
||||||
|
apt-get install \
|
||||||
|
binutils \
|
||||||
|
git \
|
||||||
|
gnupg2 \
|
||||||
|
libc6-dev \
|
||||||
|
libcurl4 \
|
||||||
|
libedit2 \
|
||||||
|
libgcc-9-dev \
|
||||||
|
libpython2.7 \
|
||||||
|
libsqlite3-0 \
|
||||||
|
libstdc++-9-dev \
|
||||||
|
libxml2 \
|
||||||
|
libz3-dev \
|
||||||
|
pkg-config \
|
||||||
|
tzdata \
|
||||||
|
uuid-dev \
|
||||||
|
zlib1g-dev
|
||||||
|
|
||||||
if which swift >/dev/null 2>/dev/null && swift --version | grep $SWIFT_VERSION >/dev/null 2>/dev/null; then
|
if which swift >/dev/null 2>/dev/null && swift --version | grep $SWIFT_VERSION >/dev/null 2>/dev/null; then
|
||||||
echo "*** swift $SWIFT_VERSION is installed"
|
echo "*** swift $SWIFT_VERSION is installed"
|
||||||
else
|
else
|
||||||
echo "*** installing swift"
|
echo "*** installing swift"
|
||||||
pushd $HOME
|
|
||||||
if [[ -e $SWIFT_FILENAME ]]; then
|
if [[ -e $SWIFT_FILENAME ]]; then
|
||||||
echo "*** $SWIFT_FILENAME exists, skipping download"
|
echo "*** $SWIFT_FILENAME exists, skipping download"
|
||||||
else
|
else
|
||||||
|
|
@ -23,8 +40,7 @@ if [[ $(uname) = "Linux" ]]; then
|
||||||
else
|
else
|
||||||
tar xzf $SWIFT_FILENAME
|
tar xzf $SWIFT_FILENAME
|
||||||
fi
|
fi
|
||||||
echo "*** add $HOME/$SWIFT_DIR/usr/bin to PATH in your shell's rc file"
|
echo "*** add $PWD/$SWIFT_DIR/usr/bin to PATH in your shell's rc file"
|
||||||
popd
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue