Add helpers/envsetup.sh (#1390)

Usage:
$ source helpers/envsetup.sh
It sets up the aliases `pmbootstrap` and `pmbroot`.
The latter changes the directory to the pmbootstrap folder.
This commit is contained in:
BK 2018-04-08 08:58:10 -04:00 committed by Oliver Smith
parent 002993b324
commit d79e13d226
2 changed files with 12 additions and 0 deletions

11
helpers/envsetup.sh Normal file
View File

@ -0,0 +1,11 @@
#! /bin/sh -e
if [ -e "pmbootstrap.py" ]; then
PMB_PATH=$(pwd)
# shellcheck disable=SC2139
alias pmbroot="cd \"$PMB_PATH\""
# shellcheck disable=SC2139
alias pmbootstrap="$PMB_PATH/pmbootstrap.py"
else
echo "ERROR: Please source this from the pmbootstrap folder."
return 1
fi

View File

@ -44,6 +44,7 @@ sh_files="
./aports/main/postmarketos-android-recovery-installer/update-binary
./aports/main/mdss-fb-init-hack/mdss-fb-init-hack.sh
./aports/main/postmarketos-ui-hildon/postmarketos-ui-hildon.post-install
./helpers/envsetup.sh
$(find . -path './aports/main/postmarketos-ui-hildon/*.sh')
$(find . -name '*.trigger')
$(find . -path './aports/main/devicepkg-dev/*.sh')