File: cb%2B%2B

package info (click to toggle)
bcpp 0.0.20210108-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 952 kB
  • sloc: cpp: 4,955; sh: 3,262; makefile: 237
file content (24 lines) | stat: -rwxr-xr-x 477 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
20
21
22
23
24
#!/bin/sh
# $Id: cb++,v 1.3 1999/01/05 17:00:20 tom Exp $
# Wrapper for 'bcpp', which does indention of C++ code (but doesn't trim
# whitespace properly).
OPTS=""
TMP="$$"
trap "rm -f $TMP" 0 1 2 5 15
for name in $*
do
	case $name in
	-*)
		echo '...Ignored  '$name
		;;
	*.cpp|*.cc|*.hh|*.h|*.ppc|*.pc|*.ph|*.htm*)
		save=${name}.orig
		rm -f $save
		bcpp -fnc bcpp.cfg -yb $name
		test -f $save && echo '** Modified '$name
		;;
	*)
		echo '...Skipping '$name
		;;
	esac
done