File: 50_swift_install.sh

package info (click to toggle)
swift 2.35.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,516 kB
  • sloc: python: 277,184; javascript: 1,059; sh: 619; pascal: 295; makefile: 81; xml: 32
file content (18 lines) | stat: -rwxr-xr-x 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

pip install -U pip
cd /opt/swift
pip install -r requirements.txt
pip install -e .

cp doc/saio/bin/* $HOME/bin
chmod +x $HOME/bin/*
sed -i "s/bash/sh/g" $HOME/bin/*
sed -i "s/sudo //g" $HOME/bin/*
mkdir /root/tmp
echo "export PATH=${PATH}:$HOME/bin" >> $HOME/.shrc
echo "export PYTHON_EGG_CACHE=/root/tmp" >> $HOME/.shrc
echo "export ENV=$HOME/.shrc" >> $HOME/.profile
chmod +x $HOME/.shrc
chmod +x $HOME/.profile