File: fixdir.bat

package info (click to toggle)
portaudio19 19.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 7,980 kB
  • ctags: 13,089
  • sloc: ansic: 56,444; sh: 13,640; cpp: 10,851; java: 677; makefile: 339; python: 143
file content (19 lines) | stat: -rwxr-xr-x 468 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
rem Use Astyle to fix style in 'C' files
cd %1%

fixlines -p *.c
fixlines -p *.cpp
fixlines -p *.cc

astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.c
astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.cpp
astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.cc
del *.orig
@rem convert line terminators to Unix style LFs
fixlines -u *.c
fixlines -u *.cpp
fixlines -u *.cc
fixlines -u *.h
del *.bak

cd ..\