Fix line endings at LF and make windows proto generation work again. needs cygwin64 in path

wio-e5
Thomas Göttgens 2023-01-19 14:04:31 +01:00
rodzic 111ec56028
commit c04980084a
2 zmienionych plików z 8 dodań i 1 usunięć

3
.gitattributes vendored 100644
Wyświetl plik

@ -0,0 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf

Wyświetl plik

@ -1 +1,5 @@
cd protobufs && ..\nanopb-0.4.7\generator-bin\protoc.exe --nanopb_out=-v:..\src\mesh\generated\meshtastic -I=..\protobufs meshtastic\*.proto
cd protobufs && ..\nanopb-0.4.7\generator-bin\protoc.exe --nanopb_out=-v:..\src\mesh\generated -I=..\protobufs ..\protobufs\meshtastic\*.proto
cd ../src/mesh/generated/meshtastic
sed -i 's/#include "meshtastic/#include "./g' *
sed -i 's/meshtastic_//g' *