~ubuntu-branches/ubuntu/precise/code-saturne/precise

« back to all changes in this revision

Viewing changes to libple/sbin/rmb

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-01 17:43:32 UTC
  • mto: (6.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20111101174332-tl4vk45no0x3emc3
Tags: upstream-2.1.0
ImportĀ upstreamĀ versionĀ 2.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PREFIX=`dirname $0`
 
4
PREFIX="$PREFIX/.."
 
5
 
 
6
RMBDIR=tmp_rmb
 
7
 
 
8
mkdir $RMBDIR || exit 1
 
9
 
 
10
for file in $PREFIX/src/*.h $PREFIX/src/*.c $PREFIX/tests/*.c
 
11
do
 
12
  tmpfile=`basename $file`
 
13
  sed -e 's/ *$//' -e 's/       /        /g' $file > $RMBDIR/$tmpfile
 
14
  diff $file $RMBDIR/$tmpfile > /dev/null 2>&1
 
15
  if [ $? = 1 ]
 
16
  then
 
17
    echo $file
 
18
    mv $RMBDIR/$tmpfile $file
 
19
  fi
 
20
done
 
21
 
 
22
\rm -rf $RMBDIR
 
23