#!/bin/sh source /p4/common/lib/libYAML.sh # read yaml file eval $(parse_yaml sample_test_config.yml "config_") # access yaml content echo Dev_DB: $config_development_database echo Prod_Passwd: $config_production_password echo Prod-Username: $config_production_username echo Dev_ArrayCheck: 0 - ${config_development_acheck[0]} 1 - ${config_development_acheck[1]} 2 - ${config_development_acheck[2]} echo Prod_ArrayCheck: 0 - ${config_production_acheck[0]} 1 - ${config_production_acheck[1]} 2 - ${config_production_acheck[2]}
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19278 | trina | "Forking branch Main of perforce-software-sdp to trina-sdp." | ||
//guest/perforce_software/sdp/main/Server/Unix/p4/common/test/yaml/test_parse_yaml.sh | |||||
#1 | 17315 | C. Thomas Tyler |
Released SDP/MultiArch/2016.1/17297 (2016/02/03). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
//guest/perforce_software/sdp/dev/Server/Unix/p4/common/test/yaml/test_parse_yaml.sh | |||||
#1 | 17251 | C. Thomas Tyler | Added YAML parsing bash library, complete with a test script and sample data file. |