mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
build(examples): Deduplicate code into add_example
helper
This commit is contained in:
committed by
Dennis Klein
parent
8960ce9416
commit
3781495d29
@@ -12,12 +12,9 @@ if [[ $1 =~ ^[a-z]+$ ]]; then
|
||||
transport=$1
|
||||
fi
|
||||
|
||||
if [[ $2 =~ ^[a-z]+$ ]]; then
|
||||
multipart=$2
|
||||
fi
|
||||
|
||||
if [[ $3 =~ ^[0-9]+$ ]]; then
|
||||
numParts=$3
|
||||
if [[ $2 =~ ^multipart$ ]]; then
|
||||
multipart="true"
|
||||
numParts=2
|
||||
fi
|
||||
|
||||
session="$(@CMAKE_BINARY_DIR@/fairmq/fairmq-uuid-gen -h)"
|
||||
|
Reference in New Issue
Block a user