~hristoast/openmw-validator

bb21046dd6eca93348e8205957f408aebfd6fe7d — Hristos N. Triantafillou 1 year, 23 days ago 430bceb 1.6
Simplify version discovery
1 files changed, 1 insertions(+), 11 deletions(-)

M package.sh
M package.sh => package.sh +1 -11
@@ 2,20 2,10 @@

this_dir=$(realpath $(dirname ${0}))
cd "${this_dir}"
exact_tag=$(git describe --exact-match --tags HEAD -- 2>/dev/null)
tag_stat=$?

make rebuild

if git diff-index --quiet HEAD --; then
    if [ $tag_stat = 0 ]; then
        version="${exact_tag}"
    else
        version=$(git rev-parse --short HEAD)
    fi
else
    version=$(git rev-parse --short HEAD)-dev
fi
version=$(git describe --tags -- 2>/dev/null)

mkdir openmw-validator-${version}
mv -v openmw-validator-*64 openmw-validator*.exe openmw-validator-${version}/