初始化提交
This commit is contained in:
21
arduino-cli/libraries/Blynk/extras/gcc-predefined.py
Normal file
21
arduino-cli/libraries/Blynk/extras/gcc-predefined.py
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
import fileinput
|
||||
|
||||
def cmdfilter(cmd):
|
||||
for el in cmd:
|
||||
el = el.strip()
|
||||
if el == '-c': continue
|
||||
if el == '-o': continue
|
||||
if el.startswith('/tmp/'): continue
|
||||
yield el
|
||||
|
||||
for line in fileinput.input():
|
||||
line = line.strip('[]')
|
||||
line = line.split(',')
|
||||
line = list(cmdfilter(line))
|
||||
line = ' '.join(line) + ' -dM -E - < /dev/null | sort'
|
||||
os.system(line)
|
||||
Reference in New Issue
Block a user