Browse Source

Support Darwin environment on buildroot/bin (#10751)

pull/1/head
KangDroid 7 years ago
committed by Scott Lahteine
parent
commit
9a531da861
  1. 4
      buildroot/bin/opt_disable
  2. 4
      buildroot/bin/opt_disable_adv
  3. 4
      buildroot/bin/opt_enable
  4. 4
      buildroot/bin/opt_enable_adv
  5. 4
      buildroot/bin/opt_set
  6. 4
      buildroot/bin/opt_set_adv
  7. 4
      buildroot/bin/pins_set

4
buildroot/bin/opt_disable

@ -1,5 +1,7 @@
#!/usr/bin/env bash
SED=$(which gsed || which sed)
for opt in "$@" ; do
eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration.h"
eval "${SED} -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration.h"
done

4
buildroot/bin/opt_disable_adv

@ -1,5 +1,7 @@
#!/usr/bin/env bash
SED=$(which gsed || which sed)
for opt in "$@" ; do
eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration_adv.h"
eval "${SED} -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration_adv.h"
done

4
buildroot/bin/opt_enable

@ -1,5 +1,7 @@
#!/usr/bin/env bash
SED=$(which gsed || which sed)
for opt in "$@" ; do
eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration.h"
eval "${SED} -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration.h"
done

4
buildroot/bin/opt_enable_adv

@ -1,5 +1,7 @@
#!/usr/bin/env bash
SED=$(which gsed || which sed)
for opt in "$@" ; do
eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration_adv.h"
eval "${SED} -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration_adv.h"
done

4
buildroot/bin/opt_set

@ -1,3 +1,5 @@
#!/usr/bin/env bash
eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration.h"
SED=$(which gsed || which sed)
eval "${SED} -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration.h"

4
buildroot/bin/opt_set_adv

@ -1,3 +1,5 @@
#!/usr/bin/env bash
eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration_adv.h"
SED=$(which gsed || which sed)
eval "${SED} -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration_adv.h"

4
buildroot/bin/pins_set

@ -1,3 +1,5 @@
#!/usr/bin/env bash
eval "sed -i 's/\(#define \b${2}\b\).*$/\1 ${3}/g' Marlin/src/pins/pins_${1}.h"
SED=$(which gsed || which sed)
eval "${SED} -i 's/\(#define \b${2}\b\).*$/\1 ${3}/g' Marlin/src/pins/pins_${1}.h"

Loading…
Cancel
Save