chiark / gitweb /
Merge branch 'no_sleep' into 'master'
[fdroidserver.git] / buildserver / setup-env-vars
1 #!/bin/sh
2 #
3 # sets up the environment vars needed by the build process
4
5 set -e
6 set -x
7
8 bsenv=/etc/profile.d/bsenv.sh
9
10 echo "# generated on "`date` > $bsenv
11
12 echo export ANDROID_HOME=$1 >> $bsenv
13 echo 'export PATH=$PATH:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:/opt/gradle/bin' >> $bsenv
14
15 chmod 0644 $bsenv
16
17 # make sure that SSH never hangs at a password or key prompt
18 printf '    StrictHostKeyChecking yes' >> /etc/ssh/ssh_config
19 printf '    BatchMode yes' >> /etc/ssh/config