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
35 --refresh Refresh the config using old settings
40 --file config-file .config file to change (default .config)
41 --keep-case|-k Keep next symbols' case (don't upper-case it)
46 By default, $myname will upper-case the given symbol. Use --keep-case to keep
47 the case of all following symbols unchanged.
50 variable CONFIG_ to the prefix to use. Eg.: CONFIG_="FOO_" $myname ...
60 case "$ARG" in
66 ARG="`echo $ARG | tr a-z A-Z`"
78 # We don't really need a backup file, but in-place editing with backup
83 sed -E -i.swp -e "/$anchor/$cmd" "$infile"
92 sed -E -i.swp -e "s$SED_DELIM$before$SED_DELIM$after$SED_DELIM" "$infile"
100 sed -E -i.swp -e "/$text/d" "$infile"
109 if test -n "$before" && grep -Eq "$before_re" "$FN"; then
111 elif grep -Eq "$name_re" "$FN"; then
126 if [ "$SED_EDITED" -ge 1 ]; then
127 rm -f "$FN.swp"
134 while [[ $# -gt 0 ]]; do
135 if [ "$1" = "--file" ]; then
147 set -- "${CMDS[@]}"
156 case "$CMD" in
157 --keep-case|-k)
161 --refresh)
163 --*-after|-E|-D|-M)
170 -*)
175 case "$CMD" in
176 --enable|-e)
180 --disable|-d)
184 --module|-m)
188 --set-str)
189 # sed swallows one level of escaping, so we need double-escaping
194 --set-val)
198 --undefine|-u)
202 --state|-s)
203 if grep -q "# ${CONFIG_}$ARG is not set" $FN ; then
219 --enable-after|-E)
223 --disable-after|-D)
227 --module-after|-M)
231 --refresh)