File: astyle.sh

package info (click to toggle)
pnmixer 0.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,088 kB
  • sloc: ansic: 3,984; sh: 23; makefile: 6
file content (14 lines) | stat: -rwxr-xr-x 231 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

which astyle >/dev/null ||
	{ echo "'astyle' is required, please install it"; exit 1; }

sed -i 's/[ \t]*$//' src/*.[ch]

astyle \
	--style=linux \
	--indent=tab=8 \
	--align-pointer=name \
	--suffix=none \
	src/*.[ch]