Introduce versioning to sequencer and seqs

Refactored sequencer option handling

More robust way to include sequencer.sh to seqs
This commit is contained in:
2019-04-05 15:32:53 +01:00
parent 09f082a83f
commit baef4e8d56
4 changed files with 87 additions and 27 deletions

View File

@@ -23,23 +23,24 @@ step_2() {
step_3_info() { echo "Step $1 header"; }
step_3() {
echo -e "Drei"
echo drei
}
step_10_info() { echo "Step $1 header"; }
step_10() {
echo -e "Zehn"
echo zehn
}
step_11_info() { echo "Step $1 header"; }
step_11() {
echo -e"Elf"
echo elf
}
#
## Path to local sequencer.sh script
# Sequence Revision
VERSION_SEQREV=1
. ./sequencer/sequencer.sh
# Workaround when called from different directory
# Not needed when path to sequencer is absolut
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )"
# Path to local sequencer.sh script
. ${DIR}/./sequencer/sequencer.sh