diff options
Diffstat (limited to 'resources/scripts/helpers/build/release/util')
-rwxr-xr-x | resources/scripts/helpers/build/release/util | 8 |
1 files changed, 7 insertions, 1 deletions
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}" |