Improves travis buildroot regexp

This commit is contained in:
João Brázio
2016-06-10 15:25:00 +01:00
parent bf8710d522
commit 280af07b4c
7 changed files with 11 additions and 6 deletions

View File

@ -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"