mirror of
https://github.com/status-im/nimbus-build-system-desktop.git
synced 2025-02-22 10:18:23 +00:00
Support vendor packages with a 'src' folder
This commit is contained in:
parent
daca2e58bd
commit
c7977002fb
@ -66,6 +66,17 @@ add_submodule() {
|
|||||||
}
|
}
|
||||||
$EXPORT_FUNC add_submodule
|
$EXPORT_FUNC add_submodule
|
||||||
|
|
||||||
|
export NIMBUS_BUILD_SYSTEM=yes
|
||||||
|
echo "--noNimblePath" > nimbus-build-system.paths
|
||||||
|
for file in $(ls -d $PWD/vendor/*)
|
||||||
|
do
|
||||||
|
if [ -d "$file/src" ]; then
|
||||||
|
echo --path:"\"$file/src\""
|
||||||
|
else
|
||||||
|
echo --path:"\"$file\""
|
||||||
|
fi
|
||||||
|
done >> nimbus-build-system.paths
|
||||||
|
|
||||||
if [[ $# == 1 && $1 == "bash" ]]; then
|
if [[ $# == 1 && $1 == "bash" ]]; then
|
||||||
# the only way to change PS1 in a child shell, apparently
|
# the only way to change PS1 in a child shell, apparently
|
||||||
# (we're not getting the original PS1 value in here, so set a complete and nice prompt)
|
# (we're not getting the original PS1 value in here, so set a complete and nice prompt)
|
||||||
@ -75,10 +86,3 @@ else
|
|||||||
# can't use "exec" here if we're getting function names as params
|
# can't use "exec" here if we're getting function names as params
|
||||||
"$@"
|
"$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export NIMBUS_BUILD_SYSTEM=yes
|
|
||||||
echo "--noNimblePath" > nimbus-build-system.paths
|
|
||||||
for file in $(ls -d $PWD/vendor/*)
|
|
||||||
do
|
|
||||||
echo --path:"\"$file\""
|
|
||||||
done >> nimbus-build-system.paths
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user