mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
removed unused scripts
This commit is contained in:
39
examples/config_gen_script/generic_example.config
Normal file
39
examples/config_gen_script/generic_example.config
Normal file
@ -0,0 +1,39 @@
|
||||
hostname hostname1+hostname2+hostname3+hostname55+
|
||||
header_var1 wow
|
||||
header_var2 great
|
||||
header_var3 very nice
|
||||
|
||||
0:counter1 100
|
||||
0:counter2 1024
|
||||
0:counter3 1500
|
||||
0:forallmodules val_mod1
|
||||
0:constant1 const1
|
||||
0:constant2 const2
|
||||
0:constant3 const3 /path/to/something
|
||||
|
||||
1:counter1 101
|
||||
1:counter2 1036
|
||||
1:counter3 1503
|
||||
1:forallmodules val_mod2
|
||||
1:constant1 const1
|
||||
1:constant2 const2
|
||||
1:constant3 const3 /path/to/something
|
||||
|
||||
2:counter1 102
|
||||
2:counter2 1048
|
||||
2:counter3 1506
|
||||
2:forallmodules val_mod3
|
||||
2:constant1 const1
|
||||
2:constant2 const2
|
||||
2:constant3 const3 /path/to/something
|
||||
|
||||
3:counter1 103
|
||||
3:counter2 1060
|
||||
3:counter3 1509
|
||||
3:forallmodules val_mod4
|
||||
3:constant1 const1
|
||||
3:constant2 const2
|
||||
3:constant3 const3 /path/to/something
|
||||
|
||||
footer1 foot1
|
||||
footer2 somethingelseathebottom
|
47
examples/config_gen_script/generic_example.config_gen
Executable file
47
examples/config_gen_script/generic_example.config_gen
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
# local variables
|
||||
a_variable=/path/to/something
|
||||
|
||||
# HOSTNAMES is special
|
||||
# Beside of the hostname line it also defines the amount of modules
|
||||
# for the body part
|
||||
# take care for the last space
|
||||
HOSTNAMES="hostname1 hostname2 hostname3 hostname55 "
|
||||
|
||||
## header contains constant values at the beginning of the file
|
||||
header=(
|
||||
header_var1="wow"
|
||||
header_var2="great"
|
||||
header_var3="very nice"
|
||||
)
|
||||
|
||||
## the body part is for each half module
|
||||
# counters will count automatically
|
||||
# the number behind ':' indicates the incrementation value
|
||||
|
||||
counters=(
|
||||
counter1="100:1"
|
||||
counter2="1024:12"
|
||||
counter3="1500:3"
|
||||
)
|
||||
|
||||
# constant values
|
||||
constants=(
|
||||
constant1="const1"
|
||||
constant2="const2"
|
||||
constant3="const3 ${a_variable}"
|
||||
)
|
||||
|
||||
# lists contains space separated lists each value for each half module
|
||||
lists=(
|
||||
forallmodules="val_mod1 val_mod2 val_mod3 val_mod4"
|
||||
)
|
||||
|
||||
|
||||
## footer contains constant values for the end of the file
|
||||
footer=(
|
||||
footer1=foot1
|
||||
footer2=somethingelseathebottom
|
||||
)
|
||||
|
Reference in New Issue
Block a user