Subversion Repositories svn1-original

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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