|
|
@@ -5,8 +5,8 @@ COD=$1 |
|
|
|
if [ ! -d "$COD" ]; then |
|
|
|
echo "usage: $0 <checkoutdir>" |
|
|
|
echo "" |
|
|
|
echo "checkoutdir is the directory where the STM32CubeXX files are" |
|
|
|
echo "checked out." |
|
|
|
echo "checkoutdir is the directory where the STM32CubeXX git repos" |
|
|
|
echo "are." |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
@@ -19,6 +19,9 @@ while read lclfn cube cubefn; do |
|
|
|
err=1 |
|
|
|
continue |
|
|
|
fi |
|
|
|
if ! cmp -s "$cubefile" "$lclfn"; then |
|
|
|
echo "updating $lclfn" |
|
|
|
fi |
|
|
|
cp "$cubefile" "$lclfn" |
|
|
|
git add "$lclfn" |
|
|
|
done << EOF |
|
|
|