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