-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_cfp_json.sh
35 lines (29 loc) · 1.18 KB
/
create_cfp_json.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#
# @brief A simple script for writting a cFp.json file for a specific cFp_Zoo domain-role
# The 1st argument is the domain-role
# @author DID, DCO
# @date Nov. 2020
echo "{" > cFp.json
echo " \"version\": \"This cFp was created by cFCreate 0.8\"," >> cFp.json
echo " \"cFpMOD\": \"FMKU60\"," >> cFp.json
echo " \"cFpSRAtype\": \"Themisto\"," >> cFp.json
echo " \"usedRoleDir\": \"$1/\"," >> cFp.json
echo " \"usedRoleDir2\": \"to-be-defined\"," >> cFp.json
echo " \"roleName1\": \"$1\"," >> cFp.json
echo " \"roleName2\": \"unused\"," >> cFp.json
echo " \"srat-conf\": {">> cFp.json
echo " \"version\": 0.3,">> cFp.json
echo " \"roles\": [">> cFp.json
echo " {">> cFp.json
echo " \"name\": \"$1\",">> cFp.json
echo " \"path\": \"$1/\"">> cFp.json
echo " },">> cFp.json
echo " {">> cFp.json
echo " \"name\": \"2nd-role\",">> cFp.json
echo " \"path\": \"2nd-role/\"">> cFp.json
echo " }">> cFp.json
echo " ],">> cFp.json
echo " \"active_role\": \"$1\"">> cFp.json
echo " }">> cFp.json
echo "}" >> cFp.json