File: format_code.sh

package info (click to toggle)
ddccontrol 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,092 kB
  • sloc: ansic: 6,696; xml: 1,841; makefile: 155; sh: 116; sed: 16
file content (15 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECT_DIR="$( dirname "$DIR" )"

# for now, only added folders heavily touched in this release
PATHS=(
    "${PROJECT_DIR}/src/ddccontrol/"
    "${PROJECT_DIR}/src/daemon/"
)

astyle --recursive \
    --style=linux --indent=tab --align-pointer=name \
    --unpad-paren --pad-header --pad-oper \
    "${PATHS[@]/%/\*.h}" "${PATHS[@]/%/\*.c}"