diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-08 11:42:33 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-08 11:42:33 (EDT) |
commit | 7d4a259c9efbc2e6c5006e0d965e4a4976b54383 (patch) | |
tree | 9f609844104c9351c5157b73f8628ed44caf092c /resources/scripts/helpers | |
parent | 75d714f5500d88bf9f6ed5c89a5ae29b32955563 (diff) | |
download | libreboot-7d4a259c9efbc2e6c5006e0d965e4a4976b54383.zip libreboot-7d4a259c9efbc2e6c5006e0d965e4a4976b54383.tar.gz libreboot-7d4a259c9efbc2e6c5006e0d965e4a4976b54383.tar.bz2 |
build/release/*: if version file already exists, re-use it
Diffstat (limited to 'resources/scripts/helpers')
-rwxr-xr-x | resources/scripts/helpers/build/release/crossgcc | 8 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/release/docs | 8 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/release/roms | 8 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/release/sha512sums | 8 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/release/src | 8 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/release/tobuild | 8 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/release/util | 8 |
7 files changed, 49 insertions, 7 deletions
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}" diff --git a/resources/scripts/helpers/build/release/docs b/resources/scripts/helpers/build/release/docs index 523d176..410e8fa 100755 --- a/resources/scripts/helpers/build/release/docs +++ b/resources/scripts/helpers/build/release/docs @@ -25,7 +25,13 @@ set -u -e printf 'Building the documentation release archive\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}/libreboot_${version}_docs" diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms index 6b02655..2f46f39 100755 --- a/resources/scripts/helpers/build/release/roms +++ b/resources/scripts/helpers/build/release/roms @@ -28,7 +28,13 @@ if [ ! -d bin/ ]; then exit 1 fi -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}" romdir="${versiondir}/rom" distname="libreboot_${version}" diff --git a/resources/scripts/helpers/build/release/sha512sums b/resources/scripts/helpers/build/release/sha512sums index cc7668b..f7c8754 100755 --- a/resources/scripts/helpers/build/release/sha512sums +++ b/resources/scripts/helpers/build/release/sha512sums @@ -22,7 +22,13 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -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}" sha512filename="sha512sum.txt" sha512filepath="${versiondir}/${sha512filename}" diff --git a/resources/scripts/helpers/build/release/src b/resources/scripts/helpers/build/release/src index 0b34553..9d88408 100755 --- a/resources/scripts/helpers/build/release/src +++ b/resources/scripts/helpers/build/release/src @@ -25,7 +25,13 @@ set -u -e printf 'Building the source release archive\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}" distname="libreboot_${version}_src" distdir="${versiondir}/${distname}" diff --git a/resources/scripts/helpers/build/release/tobuild b/resources/scripts/helpers/build/release/tobuild index dc0f5a1..3e9dac0 100755 --- a/resources/scripts/helpers/build/release/tobuild +++ b/resources/scripts/helpers/build/release/tobuild @@ -23,7 +23,13 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -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}" distname="tobuild" distdir="${versiondir}/${distname}" diff --git a/resources/scripts/helpers/build/release/util b/resources/scripts/helpers/build/release/util index 6807c7b..840be6a 100755 --- a/resources/scripts/helpers/build/release/util +++ b/resources/scripts/helpers/build/release/util @@ -41,7 +41,13 @@ else exit 1 fi -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}" distname="libreboot_${version}_util" distdir="${versiondir}/${distname}" |