File: tidy

package info (click to toggle)
sympathy 1.2.1%2Bwoking%2Bcvs%2Bgit20161222
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 892 kB
  • ctags: 894
  • sloc: ansic: 7,496; sh: 4,024; perl: 374; makefile: 123; sed: 3
file content (33 lines) | stat: -rwxr-xr-x 755 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# tidy:
#
# Copyright (c) 2008 James McKenzie <sympathy@madingley.org>,
# All rights reserved.
#
# $Id: tidy,v 1.1 2008/02/03 16:20:24 james Exp $
#
# $Log: tidy,v $
# Revision 1.1  2008/02/03 16:20:24  james
# *** empty log message ***
#
#
#
#
if [ -f Makefile ]; then
	make distclean
fi

for i in acconfig.h AUTHORS bstrap ChangeLog configure.in COPYING INSTALL mdist NEWS README tidy src/config.h.in `find . -name Makefile.am -print` `find . -name \*.[ch] -print` ; do
	if [ -f $i ]; then
		gimme $i
	fi
done

find . -name \*.[ch] -print | xargs indent -i2 -ts0 

find . -name \*~ -print| xargs /bin/rm -f 
find . -name \*.BAK -print| xargs /bin/rm -f
find . -name a.out -print| xargs /bin/rm -f
find . -name core -print| xargs /bin/rm -f