File: format_source_files.sh

package info (click to toggle)
kpartsplugin 20120605-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 292 kB
  • ctags: 558
  • sloc: cpp: 2,523; sh: 11; makefile: 2
file content (9 lines) | stat: -rwxr-xr-x 433 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh

export LC_ALL=en_US.utf8
export LANG=C

astyle --align-reference=name --align-pointer=name --indent=spaces=4 --brackets=linux --indent-labels --pad-oper --unpad-paren --pad-header --keep-one-line-statements --convert-tabs --indent-preprocessor $(find src -type f -name '*.cpp' -o -name '*.h')

export CMAKEPP=$(which cmakepp)
test -x "${CMAKEPP}" && find -name CMakeLists.txt -exec ${CMAKEPP} --sob 0 --overwrite '{}' ';'