From 7d4a259c9efbc2e6c5006e0d965e4a4976b54383 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 08 Jun 2015 11:42:33 -0400 Subject: build/release/*: if version file already exists, re-use it --- (limited to 'resources/scripts/helpers/build/release/crossgcc') diff --git a/resources/scripts/helpers/build/release/crossgcc b/resources/scripts/helpers/build/release/crossgcc index e1e4d9c..c7aa97a 100755 --- a/resources/scripts/helpers/build/release/crossgcc +++ b/resources/scripts/helpers/build/release/crossgcc @@ -25,7 +25,13 @@ set -u -e printf 'Building the coreboot crossgcc archives\n' -version="$(git describe --tags HEAD)" +if [ -f "version" ]; then + # _src release archive is being used + version="$(cat version)" +else + # git repo is being used + version="$(git describe --tags HEAD)" +fi versiondir="release/${version}" distdir="${versiondir}/crossgcc_${version}" -- cgit v0.9.1