54 lines
1.1 KiB
Bash
54 lines
1.1 KiB
Bash
#!/bin/bash
|
|
|
|
##
|
|
## Sequencer interface:
|
|
## - step_[1 - 255]_info [STEP NUMBER]
|
|
## functions providing short header for help and user interaction
|
|
## - step_[1 - 255]_alias
|
|
## (optional) provide a string as alias for this step number
|
|
## - step_[1 - 255] [STEP NUMBER]
|
|
## performing custom shell operations
|
|
##
|
|
|
|
step_1_info() { echo "Step $1 header"; }
|
|
step_1_alias() { ALIAS="begin"; }
|
|
step_1() {
|
|
cat .nofile
|
|
saveReturn $?
|
|
}
|
|
|
|
step_2_info() { echo "Step $1 header"; }
|
|
step_2() {
|
|
echo -e "Zwei"
|
|
endReturn
|
|
echo zwo
|
|
}
|
|
|
|
step_3_info() { echo "Step $1 header"; }
|
|
step_3() {
|
|
echo drei
|
|
}
|
|
|
|
step_10_info() { echo "Step $1 header"; }
|
|
step_10() {
|
|
echo zehn
|
|
}
|
|
|
|
step_11_info() { echo "Step $1 header"; }
|
|
step_11_alias() { ALIAS="elf"; }
|
|
step_11() {
|
|
echo elf
|
|
}
|
|
|
|
# Sequence Revision
|
|
VERSION_SEQREV=2
|
|
|
|
# Workaround when called from different directory
|
|
# Not needed when path to sequencer is absolut
|
|
#
|
|
# It is recommended to copy or link sequencer.sh to
|
|
# /usr/local/bin
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )"
|
|
# Path to local sequencer.sh script
|
|
. ${DIR}/./sequencer/sequencer.sh
|