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:
parent
002993b324
commit
d79e13d226
|
@ -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
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue