4 # Find all config files (config*.m4) and map them into lines with the
5 # form: NUM? '0' ' ' PATH
9 # 50 ./modules/generators/config5.m4
10 # 0 ./modules/aaa/config.m4
11 # 10 ./example/config1.m4
13 # These lines are sorted, then the first field is removed. Thus, we
14 # have a set of paths sorted on the config-number (if present). All
15 # config files without a number are sorted before those with a number.
18 configfiles=`find . -name "config*.m4" | \
19 sed 's#\(.*/config\)\(.*\).m4#\20 \1\2.m4#' | \
23 for configfile in $configfiles; do
24 if [ -r $configfile ]; then
25 echo "sinclude($configfile)"