renamed project
This commit is contained in:
18
tools/insertMyCode.sh
Normal file
18
tools/insertMyCode.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
MAIN_C=./Core/Src/main.c
|
||||
MAIN_C_BAK=./Core/Src/main.c-bak
|
||||
|
||||
if [ ! -f $MAIN_C ]; then
|
||||
echo "no $MAIN_C available"
|
||||
exit 1
|
||||
fi
|
||||
if [ -f $MAIN_C_BAK ]; then
|
||||
echo "$MAIN_C_BAK already available, delete manually"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mv $MAIN_C $MAIN_C_BAK
|
||||
cat $MAIN_C_BAK | ../tools/insertMyCode.pl > $MAIN_C
|
||||
|
||||
|
Reference in New Issue
Block a user