source: trunk/bitten/slaves/include/ini.awk @ 517

Last change on this file since 517 was 517, checked in by amain, 6 years ago

Merge contrib branch 340:516. Main features added:

  • updated plugin architecture
  • improved patch system
  • bitten continous integration support
  • sever build fixed over time to remain in sync with OpenWrt
File size: 236 bytes
Line 
1BEGIN {
2  FS = "="
3}
4
5function trim( str )
6{
7   sub(/^ +/, "", str)
8   sub(/ +$/, "", str)
9   return str
10}
11
12/^\[/ {
13  group = substr( $1, 2, length($1) - 2)
14}
15
16/^[a-zA-Z]/ && ! /password/ {
17   print group"_"trim($1)"=\""trim($2)"\""
18}
19
Note: See TracBrowser for help on using the repository browser.