Lines Matching +full:use +full:- +full:case
2 # SPDX-License-Identifier: GPL-2.0
7 # If no prefix forced, use the default CONFIG_
8 CONFIG_="${CONFIG_-CONFIG_}"
10 # We use an uncommon delimiter for sed substitutions
11 SED_DELIM=$(echo -en "\001")
19 --enable|-e option Enable option
20 --disable|-d option Disable option
21 --module|-m option Turn option into a module
22 --set-str option string
24 --set-val option value
26 --undefine|-u option Undefine option
27 --state|-s option Print state of option (n,y,m,undef)
29 --enable-after|-E beforeopt option
31 --disable-after|-D beforeopt option
33 --module-after|-M beforeopt option
39 --file config-file .config file to change (default .config)
40 --keep-case|-k Keep next symbols' case (dont' upper-case it)
45 By default, $myname will upper-case the given symbol. Use --keep-case to keep
46 the case of all following symbols unchanged.
49 variable CONFIG_ to the prefix to use. Eg.: CONFIG_="FOO_" $myname ...
59 case "$ARG" in
65 ARG="`echo $ARG | tr a-z A-Z`"
78 sed -e "/$anchor/$cmd" "$infile" >"$tmpfile"
89 sed -e "s$SED_DELIM$before$SED_DELIM$after$SED_DELIM" "$infile" >"$tmpfile"
99 sed -e "/$text/d" "$infile" >"$tmpfile"
109 if test -n "$before" && grep -Eq "$before_re" "$FN"; then
112 elif grep -Eq "$name_re" "$FN"; then
127 if [ "$1" = "--file" ]; then
145 case "$CMD" in
146 --keep-case|-k)
150 --refresh)
152 --*-after|-E|-D|-M)
159 -*)
164 case "$CMD" in
165 --enable|-e)
169 --disable|-d)
173 --module|-m)
177 --set-str)
178 # sed swallows one level of escaping, so we need double-escaping
183 --set-val)
187 --undefine|-u)
191 --state|-s)
192 if grep -q "# ${CONFIG_}$ARG is not set" $FN ; then
208 --enable-after|-E)
212 --disable-after|-D)
216 --module-after|-M)
220 # undocumented because it ignores --file (fixme)
221 --refresh)