João Brázio
9 years ago
No known key found for this signature in database
GPG Key ID: F62CFD37DFFDB540
7 changed files with
11 additions and
6 deletions
-
buildroot/bin/opt_disable
-
buildroot/bin/opt_disable_adv
-
buildroot/bin/opt_enable
-
buildroot/bin/opt_enable_adv
-
buildroot/bin/opt_set
-
buildroot/bin/opt_set_adv
-
buildroot/bin/pins_set
|
|
@ -1,5 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
for opt in "$@" ; do |
|
|
|
eval "sed -i 's/\(\/\/ *\)*\(\#define +$opt[^a-zA-Z0-9_]\)/\/\/\2/g' Marlin/Configuration.h" |
|
|
|
eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration.h" |
|
|
|
done |
|
|
|
|
|
@ -0,0 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
for opt in "$@" ; do |
|
|
|
eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration_adv.h" |
|
|
|
done |
|
|
@ -1,5 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
for opt in "$@" ; do |
|
|
|
eval "sed -i 's/\/\/ *\(#define +$opt[^a-zA-Z0-9_]\)/\1/g' Marlin/Configuration.h" |
|
|
|
eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration.h" |
|
|
|
done |
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
for opt in "$@" ; do |
|
|
|
eval "sed -i 's/\/\/ *\(#define +$opt[^a-zA-Z0-9_]\)/\1/g' Marlin/Configuration_adv.h" |
|
|
|
eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration_adv.h" |
|
|
|
done |
|
|
|
|
|
@ -1,3 +1,3 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
eval "sed -i 's/\(#define +$1 +\)[^ ]*$/\1 $2/g' Marlin/Configuration.h" |
|
|
|
eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration.h" |
|
|
|
|
|
@ -1,3 +1,3 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
eval "sed -i 's/\(#define +$1 +\)[^ ]*$/\1 $2/g' Marlin/Configuration_adv.h" |
|
|
|
eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration_adv.h" |
|
|
|
|
|
@ -1,3 +1,3 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
eval "sed -i 's/\(#define +$2 +\)[^ ]*$/\1 $3/g' Marlin/pins_$1.h" |
|
|
|
eval "sed -i 's/\(#define \b${2}\b\).*$/\1 ${3}/g' Marlin/pins_${1}.h" |
|
|
|