Subversion Repositories svn1-original

Rev

Rev 6 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 root 1
# /usr/bin/bash
7 david 2
# This copy of this program is on a branch
1 root 3
#
4
#
5
if [ ! -r $1 ] ; then
6
    echo "File not found: $1"
7
    exit 1
8
fi
9
set -x
10
 
11
OLD=$1
12
NEW=$1.new
13
TMP=$1._tmp
14
 
15
indent $OLD -o $TMP
16
sed < $TMP > $NEW -e 's/(  );/();/g' -e 's/(  )/()/g' \
17
                  -e 's/^\( \+\)( void ) /\1/g' -e 's/^\( \+\)\*\* /\1*  /g'
18
rm $TMP