2016-06-15 13:09:57 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# sets up the environment vars needed by the build process
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
bsenv=/etc/profile.d/bsenv.sh
|
|
|
|
|
|
|
|
echo "# generated on "`date` > $bsenv
|
|
|
|
|
|
|
|
echo export ANDROID_HOME=$1 >> $bsenv
|
|
|
|
echo 'export PATH=$PATH:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:/opt/gradle/bin' >> $bsenv
|
2018-11-27 18:14:05 +01:00
|
|
|
echo "export DEBIAN_FRONTEND=noninteractive" >> $bsenv
|
2016-06-15 13:09:57 +02:00
|
|
|
|
|
|
|
chmod 0644 $bsenv
|
2017-11-23 21:19:45 +01:00
|
|
|
|
|
|
|
# make sure that SSH never hangs at a password or key prompt
|
|
|
|
printf ' StrictHostKeyChecking yes' >> /etc/ssh/ssh_config
|
2021-05-25 16:56:55 +02:00
|
|
|
printf ' BatchMode yes' >> /etc/ssh/ssh_config
|