mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-13 19:13:14 +00:00
Initial go at Travis CI (#191)
This commit is contained in:
3
buildroot/bin/opt_add
Executable file
3
buildroot/bin/opt_add
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
eval "echo \"#define ${1} ${2}\" >>Multiprotocol/_Config.h"
|
||||
7
buildroot/bin/opt_disable
Executable file
7
buildroot/bin/opt_disable
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SED=$(which gsed || which sed)
|
||||
|
||||
for opt in "$@" ; do
|
||||
eval "${SED} -i 's/\([[:blank:]]*\)\(#define[[:blank:]]*\b${opt}\b\)/\1\/\/\2/g' Multiprotocol/_Config.h"
|
||||
done
|
||||
7
buildroot/bin/opt_enable
Executable file
7
buildroot/bin/opt_enable
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SED=$(which gsed || which sed)
|
||||
|
||||
for opt in "$@" ; do
|
||||
eval "${SED} -i 's/\/\/[[:blank:]]*\(#define[[:blank:]]*\b${opt}\b\)/\1/g' Multiprotocol/_Config.h"
|
||||
done
|
||||
5
buildroot/bin/opt_set
Executable file
5
buildroot/bin/opt_set
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SED=$(which gsed || which sed)
|
||||
|
||||
eval "${SED} -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Multiprotocol/_Config.h"
|
||||
Reference in New Issue
Block a user