Statistics
| Revision:

root / cleanup.sh

History | View | Annotate | Download (319 Bytes)

1
#!/bin/bash
2
INPUTDIR=$1
3
OUTPUTDIR=$1-rev
4
mkdir -p $OUTPUTDIR
5
for path in $INPUTDIR/*.cpp
6
do
7
# echo $path
8
# echo "Basename of $path = `basename $path`"
9
# echo "Dirname of $path = `dirname $path`"
10
  file=`basename $path`
11
  echo $file
12
  sed -f cleanup.sed  $path > $OUTPUTDIR/$file
13
# echo $path "->"$OUTPUTDIR/$file
14
done
15