Rob Landley | 2896480 | 2008-01-19 17:08:39 -0600 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | mkdir -p generated | ||||
4 | |||||
5 | function genconfig() | ||||
6 | { | ||||
7 | for i in $(echo toys/*.c | sort) | ||||
8 | do | ||||
9 | # Grab the config block for Config.in | ||||
10 | echo "# $i" | ||||
11 | sed -n '/^\*\//q;/^config [A-Z]/,$p' $i || exit 1 | ||||
12 | echo | ||||
13 | done | ||||
14 | } | ||||
15 | |||||
16 | genconfig > generated/Config.in |