summaryrefslogtreecommitdiffstats
path: root/tools/update/rtems-polish.sh
blob: fe8604e97234c485f2565013d6db84bec92db671 (plain)
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
#!/bin/sh

pwd=`pwd`;

ac_files=`find . -name Makefile.in`;
for f in $ac_files; do
  i=`dirname $f`
  dest="$i"
  if test ! -f $dest/Makefile.am; then
    echo "polishing : $dest/Makefile.in"
    ( cd $dest; 
      mv Makefile.in Makefile.in~;
      $pwd/c/update-tools/acpolish <Makefile.in~ >Makefile.in
      rm Makefile.in~
    )
  fi
done

am_files=`find . -name Makefile.am`;
for f in $am_files; do
  i=`dirname $f`
  dest="$i"
    echo "polishing : $dest/Makefile.am"
    ( cd $dest; 
      mv Makefile.am Makefile.am~;
      $pwd/c/update-tools/ampolish <Makefile.am~ >Makefile.am
      rm Makefile.am~
    )
done