Commit 5240ce6a authored by Simon Brass's avatar Simon Brass
Browse files

fc-version.sh: add gcc-trunk-LATEST to options

parent 08f5dda4
Pipeline #34 skipped
......@@ -2,6 +2,8 @@
PREFIX=/var/lib/jenkins/slave/opt
MATCH=0
# GCC: [0-9].[0-9].[0-9] or [0-9].[0-9]-LATEST or trunk-LATEST
# Working on slave2
# LIB_SUFFIX=lib64
......@@ -28,9 +30,10 @@ function gcc-check {
# |----: Main Release
# |---------: Subrelease, if zero, track lastest version
# |--------------: Version, if given, this is a stable version
# Additional: trunk = Release.Subrelease
set -x
FC_PATH=$PREFIX/`ls -l $PREFIX/$FC_LABEL | grep -o -E gcc-[0-9]+.[0-9]+-[0-9]+$`
FC_PATH=$PREFIX/`ls -l $PREFIX/$FC_LABEL | grep -o -E gcc-[0-9]+.[0-9]+-[0-9]+\|gcc-trunk-[0-9]+$`
FC_REVISION=`ls -l $PREFIX/$FC_LABEL | grep -o -E [0-9]+$`
FC_BINPATH=$FC_PATH/bin
FC_LIBPATH=$FC_PATH/$LIB_SUFFIX/
......@@ -122,7 +125,7 @@ function ekopath-check {
set -x
FCBIN=${FC_LABEL/-*/""}
FC_VERSION=${FC_LABEL/$FCBIN-/""}
FCRELEASE=`echo $FC_VERSION | grep -oE [0-9].[0-9]+`
FCRELEASE=`echo $FC_VERSION | grep -oE [0-9].[0-9]+\|trunk`
FCMINOR_CUT=`expr length $FCRELEASE`
let "FCMINOR_CUT += 1"
FCMINOR=${FC_VERSION:$FCMINOR_CUT}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment