mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iop: genconfig_wrap: Deprecate --clean option
* deprecate -c /--clean option Clean for gen_config.py does something else than original * few script improvements
This commit is contained in:
parent
749e095b04
commit
e8554bcd03
1 changed files with 3 additions and 8 deletions
|
|
@ -4,7 +4,7 @@
|
|||
function to_lowercase {
|
||||
local params=()
|
||||
for param in "$@"; do
|
||||
params+=("$(echo "$param" | tr '[:upper:]' '[:lower:]')")
|
||||
params+=("$(tr '[:upper:]' '[:lower:]' <<< "$param")")
|
||||
done
|
||||
echo "${params[@]}"
|
||||
}
|
||||
|
|
@ -19,16 +19,11 @@ function genconfig {
|
|||
if [[ ${args[0]} == -* ]]; then
|
||||
# Convert options for target script
|
||||
if [[ ${args[0]} == "-b" || ${args[0]} == "--boards" ]]; then
|
||||
args=()
|
||||
args[0]="-l"
|
||||
elif [[ ${args[0]} == "-c" || ${args[0]} == "--clean" ]]; then
|
||||
args=()
|
||||
args[0]="-c"
|
||||
args=("--list")
|
||||
fi
|
||||
fi
|
||||
|
||||
${target_script} ${args[*]}
|
||||
|
||||
${target_script} ${args[@]}
|
||||
}
|
||||
|
||||
register_command "genconfig" "Generate configuration for board and customer"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue