opt_set 229 B

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