1*2e9d4914SAndroid Build Coastguard WorkerInstalation: 2*2e9d4914SAndroid Build Coastguard Worker------------ 3*2e9d4914SAndroid Build Coastguard Worker 4*2e9d4914SAndroid Build Coastguard WorkerFirst place somewhere ls-config binary, or make it from source 5*2e9d4914SAndroid Build Coastguard Worker 6*2e9d4914SAndroid Build Coastguard WorkerThen if You woud like use it with national translation, then You muas build 7*2e9d4914SAndroid Build Coastguard Workerit form source and then copy *.mo files according to You system 8*2e9d4914SAndroid Build Coastguard Worker 9*2e9d4914SAndroid Build Coastguard WorkerUsage: 10*2e9d4914SAndroid Build Coastguard Worker------ 11*2e9d4914SAndroid Build Coastguard Worker 12*2e9d4914SAndroid Build Coastguard WorkerRemember to call ls-config always with -f parameter, 13*2e9d4914SAndroid Build Coastguard Workerwich give ls-config inormation wich config file use. 14*2e9d4914SAndroid Build Coastguard Worker 15*2e9d4914SAndroid Build Coastguard WorkerThen this program operate in three based modes: 16*2e9d4914SAndroid Build Coastguard Worker-g (get) for reading values (default) 17*2e9d4914SAndroid Build Coastguard Worker-s (set) for store values 18*2e9d4914SAndroid Build Coastguard Worker-h (help) for display help message 19*2e9d4914SAndroid Build Coastguard Workerboth parameter (-g and -s) nedd to give it variable path 20*2e9d4914SAndroid Build Coastguard Worker(internal configuration variable path) 21*2e9d4914SAndroid Build Coastguard Worker 22*2e9d4914SAndroid Build Coastguard Workerfor exapmle read info value from config file: 23*2e9d4914SAndroid Build Coastguard Workerls-config -f config -g info 24*2e9d4914SAndroid Build Coastguard Worker 25*2e9d4914SAndroid Build Coastguard WorkerThen You can set this value to another 26*2e9d4914SAndroid Build Coastguard Workerls-config -f config -s info -d "Somethint to write" 27*2e9d4914SAndroid Build Coastguard Worker 28*2e9d4914SAndroid Build Coastguard WorkerBut when You wand to addn new configutation variable you must 29*2e9d4914SAndroid Build Coastguard Workerspecify his type: 30*2e9d4914SAndroid Build Coastguard Workerls-config -f config -s someint -d 10 -p int 31*2e9d4914SAndroid Build Coastguard Worker 32*2e9d4914SAndroid Build Coastguard WorkerYou can remove (unset) variable too. This is subfunstion of setting: 33*2e9d4914SAndroid Build Coastguard Workerls-config -f config -s someint -u 34*2e9d4914SAndroid Build Coastguard Worker 35*2e9d4914SAndroid Build Coastguard WorkerWhen reading You cent use following flag: 36*2e9d4914SAndroid Build Coastguard Worker-v - read only variable valut 37*2e9d4914SAndroid Build Coastguard Worker-t - read only variable type 38*2e9d4914SAndroid Build Coastguard Worker-c - read only variable element count (sense only in types: array, list, group) 39*2e9d4914SAndroid Build Coastguard Worker-i - read only variable index (sense only in type: array, list) 40*2e9d4914SAndroid Build Coastguard Worker-n - read only variable name 41*2e9d4914SAndroid Build Coastguard Worker 42*2e9d4914SAndroid Build Coastguard Workerand sometimes usable 43*2e9d4914SAndroid Build Coastguard Worker-q - to wori in quiet mode usable in scripts. 44*2e9d4914SAndroid Build Coastguard Worker 45*2e9d4914SAndroid Build Coastguard WorkerFor example to read variable somevar type, where variable in group foo: 46*2e9d4914SAndroid Build Coastguard Workerls-config -f config -g "foo.somevar" -t 47*2e9d4914SAndroid Build Coastguard Worker 48*2e9d4914SAndroid Build Coastguard WorkerFor detailed list of parametera (long options available too) run ls-config 49*2e9d4914SAndroid Build Coastguard Workerin help mode: 50*2e9d4914SAndroid Build Coastguard Workerls-config -h 51*2e9d4914SAndroid Build Coastguard Worker 52*2e9d4914SAndroid Build Coastguard WorkerConfiguraiton files: 53*2e9d4914SAndroid Build Coastguard Worker-------------------- 54*2e9d4914SAndroid Build Coastguard Worker 55*2e9d4914SAndroid Build Coastguard WorkerDetailed configuration file shema are publicated on: 56*2e9d4914SAndroid Build Coastguard Workerhttp://www.hyperrealm.com/libconfig/ 57*2e9d4914SAndroid Build Coastguard WorkerAnd his gramar on: 58*2e9d4914SAndroid Build Coastguard Workerhttp://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files 59*2e9d4914SAndroid Build Coastguard Worker 60*2e9d4914SAndroid Build Coastguard Workerthere are only short describe: 61*2e9d4914SAndroid Build Coastguard Workerconfiguration = setting-list | empty 62*2e9d4914SAndroid Build Coastguard Workersetting-list = setting | setting-list setting 63*2e9d4914SAndroid Build Coastguard Workersetting = name (":" | "=") value (";" | "," | empty) 64*2e9d4914SAndroid Build Coastguard Workervalue = scalar-value | array | list | group 65*2e9d4914SAndroid Build Coastguard Workervalue-list = value | value-list "," value 66*2e9d4914SAndroid Build Coastguard Workerscalar-value = boolean | integer | integer64 | hex | hex64 | float | string 67*2e9d4914SAndroid Build Coastguard Workerscalar-value-list = scalar-value | scalar-value-list "," scalar-value 68*2e9d4914SAndroid Build Coastguard Workerarray = "[" (scalar-value-list | empty) "]" 69*2e9d4914SAndroid Build Coastguard Workerlist = "(" (value-list | empty) ")" 70*2e9d4914SAndroid Build Coastguard Workergroup = "{" (setting-list | empty) "}" 71*2e9d4914SAndroid Build Coastguard Workerempty = 72*2e9d4914SAndroid Build Coastguard Worker 73*2e9d4914SAndroid Build Coastguard Workersmaple configuration file and script are available on sample/ directory 74*2e9d4914SAndroid Build Coastguard Workerconfig - samble configuration file 75*2e9d4914SAndroid Build Coastguard Workerscript - sample script, then read info variable from config file 76