mirror of https://github.com/rusefi/ChibiOS.git
Added simple script for massive file changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4571 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
bfa1ba111d
commit
023c9515e4
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
FILES=`find -name 'mcuconf.h'`
|
||||
for i in $FILES
|
||||
do
|
||||
cp $i ${i}_backup
|
||||
cat ${i}_backup | \
|
||||
sed -e 's/\(#define STM32_I2C_I2C[0-9]_IRQ_PRIORITY\)\([ ]*\)\([0-9]*\)/\1\25/' | \
|
||||
sed -e 's/\(#define STM32_I2C_I2C[0-9]_DMA_PRIORITY\)\([ ]*\)\([0-9]*\)/\1\23/' | \
|
||||
sed -e 's/\(#define STM32_ADC_IRQ_PRIORITY\)\([ ]*\)\([0-9]*\)/\1\26/' | \
|
||||
sed -e 's/\(#define STM32_ADC_ADC[0-9]_IRQ_PRIORITY\)\([ ]*\)\([0-9]*\)/\1\26/' | \
|
||||
sed -e 's/\(#define STM32_ADC_ADC[0-9]_DMA_IRQ_PRIORITY\)\([ ]*\)\([0-9]*\)/\1\26/' > $i
|
||||
rm ${i}_backup
|
||||
done
|
Loading…
Reference in New Issue