1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

use git describe instead of hard-coded version number in build scripts

This commit is contained in:
Oliver Giles 2017-08-19 10:47:27 +03:00
parent 97bb43ae4f
commit 3f32e9cb37
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
#!/bin/bash
VERSION=0.3
OUTPUT_DIR=$PWD
SOURCE_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
VERSION=$(cd "$SOURCE_DIR" && git describe --tags --abbrev=8 --dirty)
docker run --rm -i -v $SOURCE_DIR:/root/rpmbuild/SOURCES/laminar-$VERSION:ro -v $OUTPUT_DIR:/output centos bash -xe <<EOS
yum -y install epel-release

View File

@ -1,11 +1,11 @@
#!/bin/bash
VERSION=0.3
OUTPUT_DIR=$PWD
SOURCE_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
VERSION=$(cd "$SOURCE_DIR" && git describe --tags --abbrev=8 --dirty)
docker run --rm -i -v $SOURCE_DIR:/laminar:ro -v $OUTPUT_DIR:/output debian:stable bash -xe <<EOS
apt-get update