]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - tools/config-gen-functions.sh
2 # Copyright (C) 2011 Karel Zak <kzak@redhat.com>
6 # Returns configure options from selected config file
8 # ul_get_configuration <config-file>
12 # ul_get_configuration $top_srcdir/tools/config-gen.d/all
14 ul_get_configuration
() {
16 local dir
=$
(dirname $1)
17 local opts
=$
(cat $conf)
20 while [ "$opts" != "$old_opts" ]; do
24 for citem
in $opts; do
26 include
:*) new_opts
="$new_opts $(cat $dir/${citem##*:})" ;;
27 *) new_opts
="$new_opts $citem" ;;
32 echo $opts |
tr " " "\n" |
sort -u