mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Revert "iop: genconfig_wrap: Depricate --clean option"
This reverts commit 6b93fd6e27.
This commit is contained in:
parent
45f47de514
commit
749e095b04
1 changed files with 8 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
|||
function to_lowercase {
|
||||
local params=()
|
||||
for param in "$@"; do
|
||||
params+=("$(tr '[:upper:]' '[:lower:]' <<< "$param")")
|
||||
params+=("$(echo "$param" | tr '[:upper:]' '[:lower:]')")
|
||||
done
|
||||
echo "${params[@]}"
|
||||
}
|
||||
|
|
@ -19,11 +19,16 @@ function genconfig {
|
|||
if [[ ${args[0]} == -* ]]; then
|
||||
# Convert options for target script
|
||||
if [[ ${args[0]} == "-b" || ${args[0]} == "--boards" ]]; then
|
||||
args=("--list")
|
||||
args=()
|
||||
args[0]="-l"
|
||||
elif [[ ${args[0]} == "-c" || ${args[0]} == "--clean" ]]; then
|
||||
args=()
|
||||
args[0]="-c"
|
||||
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