/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
HLTrigger/Configuration/common/utils.sh
46 строк
887 B
Sam Harper
bug fixes in hltIntegration setup commands
04 ноя 2021, 18:55
04 ноя 2021, 18:55
8931673
Код
Авторство
О чём код?
#! /bin/bash function parse_HLT_schema() { # check input if [ $# != 1 ]; then echo 'parse_HLT_schema: wrong number of parameters' 1>&2 return 1 fi # default values Vx="v3" DB="$1" # parse the connection string [version/]database if [[ "$DB" =~ .*/.* ]]; then Vx=`echo "$DB" | cut -d/ -f1` DB=`echo "$DB" | cut -d/ -f2` fi echo "$Vx" "$DB" } function parse_HLT_menu() { # check input if [ $# != 1 ]; then echo 'parse_HLT_menu: wrong number of parameters' 1>&2 return 1 fi # default values Vx="v3" DB="run3" MENU="$1" # parse the connection string [[version/]database:]menu if [[ "$1" =~ .*:.* ]]; then MENU=`echo "$1" | cut -d: -f2` DB=`echo "$1" | cut -d: -f1` if [[ "$DB" =~ .*/.* ]]; then Vx=`echo "$DB" | cut -d/ -f1` DB=`echo "$DB" | cut -d/ -f2` fi fi echo "$Vx" "$DB" "$MENU" }