forked from M-Labs/nix-scripts
artiq: take into account beta version marker
This commit is contained in:
parent
26f1418492
commit
9a342421ba
|
@ -6,10 +6,15 @@ let
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
REV=`${git}/bin/git rev-parse HEAD`
|
REV=`${git}/bin/git rev-parse HEAD`
|
||||||
MAJOR_VERSION=`cat MAJOR_VERSION`
|
MAJOR_VERSION=`cat MAJOR_VERSION`
|
||||||
|
if [ -e BETA ]; then
|
||||||
|
SUFFIX=".beta"
|
||||||
|
else
|
||||||
|
SUFFIX=""
|
||||||
|
fi
|
||||||
COMMIT_COUNT=`${git}/bin/git rev-list --count HEAD`
|
COMMIT_COUNT=`${git}/bin/git rev-list --count HEAD`
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
echo -n $MAJOR_VERSION.$COMMIT_COUNT.`cut -c1-8 <<< $REV`.beta > $out
|
echo -n $MAJOR_VERSION.$COMMIT_COUNT.`cut -c1-8 <<< $REV`$SUFFIX > $out
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in New Issue