You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
950 B
27 lines
950 B
3 years ago
|
#!/bin/bash
|
||
|
|
||
|
echo "#include <Arduino.h>" > synth_dexed.h
|
||
|
echo "#include <Audio.h>" >> synth_dexed.h
|
||
|
echo "#include \"config.h\"" >> synth_dexed.h
|
||
|
for i in `cat includes.txt`
|
||
|
do
|
||
|
echo "/*****************************************************" >> synth_dexed.h
|
||
|
echo " * CODE; ${i}" >> synth_dexed.h
|
||
|
echo " *****************************************************/" >> synth_dexed.h
|
||
|
|
||
|
cat $i >> synth_dexed.h
|
||
|
echo "" >> synth_dexed.h
|
||
|
echo "//=====================================================" >> synth_dexed.h
|
||
|
done
|
||
|
|
||
|
echo "#include \"synth_dexed.h\"" > synth_dexed.cpp
|
||
|
for i in `ls orig_code/*.cpp`
|
||
|
do
|
||
|
echo "/*****************************************************" >> synth_dexed.cpp
|
||
|
echo " * CODE; ${i}" >> synth_dexed.cpp
|
||
|
echo " *****************************************************/" >> synth_dexed.cpp
|
||
|
cat $i >> synth_dexed.cpp
|
||
|
echo "" >> synth_dexed.cpp
|
||
|
echo "//=====================================================" >> synth_dexed.cpp
|
||
|
done
|