File: indent.sh

package info (click to toggle)
cheese 44.1-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,312 kB
  • sloc: ansic: 6,621; xml: 293; sh: 183; python: 55; makefile: 21
file content (15 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

INDENT_PROGRAM="uncrustify"
DIR="tools"
CFG="cheese-indent.cfg"
LANG="VALA"

[[ $# -lt 1 ]] && { echo "$0 [files]" 1>&2; exit 1; }

if ! which $INDENT_PROGRAM > /dev/null 2>&1; then
  echo "$INDENT_PROGRAM was not found on your computer, please install it"
  exit 1
fi

$INDENT_PROGRAM -l $LANG -c $DIR/$CFG --no-backup --replace $@