]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/build_option_survey/listallopts.sh
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / tools / build_option_survey / listallopts.sh
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5 # This file is in the public domain
6
7
8 set -e
9
10 T=/tmp/_$$
11
12 cd /usr/src
13 make showconfig __MAKE_CONF=/dev/null SRCCONF=/dev/null |
14         sort |
15         sed '
16                 s/^MK_//
17                 s/=//
18         ' | awk '
19         $2 == "yes"     { printf "WITHOUT_%s\n", $1 }
20         $2 == "no"      { printf "WITH_%s\n", $1 }
21         '
22