summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-30 18:10:22 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-30 18:10:22 +0100
commit67421a21fd3a8e0cc6909ca4d96eaa875dd544d7 (patch)
tree4907baa1eb77593a37dfd97b47373ade9b6fd008
parent55dbd72aaf7796f01ad749239fd4874392c9ae22 (diff)
trees and git.sh: tidy up global variables
some of the variables only initialised in git.sh are also used in the trees script, which is technically ok because git.sh is included from the trees script, but it makes more sense to declare them in the latter. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xinclude/git.sh4
-rwxr-xr-xscript/trees2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/git.sh b/include/git.sh
index 4e965e04..11e13a6c 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -2,8 +2,8 @@
# Copyright (c) 2020-2021,2023-2024 Leah Rowe <leah@libreboot.org>
# Copyright (c) 2022 Caleb La Grange <thonkpeasant@protonmail.com>
-eval `setvars "" rev loc url bkup_url depend tree_depend mdir subhash subrepo \
- subrepo_bkup subfile subfile_bkup`
+eval `setvars "" loc url bkup_url subfile mdir subhash subrepo subrepo_bkup \
+ depend subfile_bkup`
fetch_targets()
{
diff --git a/script/trees b/script/trees
index b96c1ac0..2b7dfaf0 100755
--- a/script/trees
+++ b/script/trees
@@ -12,7 +12,7 @@ set -u -e
cbmakeargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
eval `setvars "" xarch cdir defconfig cmakedir xlang mode makeargs elfdir cmd \
project target target_dir targets xtree _f target1 bootstrapargs mkhelper \
- autoconfargs listfile autogenargs btype tree`
+ autoconfargs listfile autogenargs btype tree rev tree_depend`
main()
{