From dfb1385fcc81692c975748b1a94776cfb4aec947 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 5 Jun 2021 19:02:12 -0700 Subject: [PATCH] build_dist.sh: add a command to output the shell vars. Some downstream distros eval'd version/version.sh to get at the shell variables within their own build process. They can now `./build_dist.sh shellvars` to get those. Fixes #2058. Signed-off-by: David Anderson --- build_dist.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build_dist.sh b/build_dist.sh index 876388c32..901c29b94 100755 --- a/build_dist.sh +++ b/build_dist.sh @@ -30,9 +30,17 @@ else fi long_suffix="$change_suffix-t$short_hash" -echo $change_count SHORT="$major.$minor.$patch" LONG="${SHORT}$long_suffix" GIT_HASH="$git_hash" +if [ "$1" = "shellvars" ]; then + cat <