diff options
author | 2015-02-14 11:52:03 +0100 | |
---|---|---|
committer | 2015-02-14 22:06:24 +0100 | |
commit | a578ebd2966350d21b8b6d74f101eb57bdfb285b (patch) | |
tree | 34814bd2f8febd0fe3cc405e9ba3349db0d047b1 /utils/br-reproduce-build | |
parent | df8198a69a36e35979e130b383ac6e50a548a32f (diff) | |
download | buildroot-test-a578ebd2966350d21b8b6d74f101eb57bdfb285b.tar.gz buildroot-test-a578ebd2966350d21b8b6d74f101eb57bdfb285b.tar.bz2 |
br-reproduce-build: accept BASE_GIT and OUTPUT_DIR from the env
Currently, when we want to set those variables, one has to edit the
script, so would get a conflict on the next git-pull.
Instead, allow the user to specify those variables in the environment.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'utils/br-reproduce-build')
-rwxr-xr-x | utils/br-reproduce-build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/br-reproduce-build b/utils/br-reproduce-build index 7b4961c..a84bd5a 100755 --- a/utils/br-reproduce-build +++ b/utils/br-reproduce-build @@ -3,12 +3,12 @@ # A directory that contains an existing Git repository of # Buildroot. The script will git clone from it instead of git cloning # from the official repo, in order to reduce the clone time. -BASE_GIT=/home/test/buildroot/ +BASE_GIT="${BASE_GIT:-/home/test/buildroot/}" # Location where the output directories will be created. One # subdirectory, named after the build ID will be created for each # build. -OUTPUT_DIR=/home/test/outputs/ +OUTPUT_DIR="${OUTPUT_DIR:-/home/test/outputs/}" if [ $# -ne 1 ] ; then echo "Usage: $0 buildid" ; |