mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 17:00:12 +01:00
16 lines
318 B
Plaintext
16 lines
318 B
Plaintext
|
#!/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
|
||
|
|
||
|
chmod 0644 $bsenv
|