Marlin_Firmware/buildroot/bin/opt_add

4 lines
120 B
Bash

#!/usr/bin/env bash
eval "echo '#define ${@}' | cat - Marlin/Configuration.h > temp && mv temp Marlin/Configuration.h"