OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [tools/] [update/] [rtems-polish.sh] - Diff between revs 30 and 173

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 30 Rev 173
#!/bin/sh
#!/bin/sh
 
 
# $Id: rtems-polish.sh,v 1.2 2001-09-27 12:02:54 chris Exp $
# $Id: rtems-polish.sh,v 1.2 2001-09-27 12:02:54 chris Exp $
 
 
#
#
# Search RTEMS source tree for autoconf Makefile.ins and automake
# Search RTEMS source tree for autoconf Makefile.ins and automake
# Makefile.ams and run c/update-tools/acpolish rsp. c/update-tool/ampolish
# Makefile.ams and run c/update-tools/acpolish rsp. c/update-tool/ampolish
# on them.
# on them.
#
#
# To be run from the toplevel directory of the source-tree
# To be run from the toplevel directory of the source-tree
#
#
 
 
progname=`basename $0`
progname=`basename $0`
rootdir=`dirname $0`
rootdir=`dirname $0`
 
 
# Get the absolute path to the perltools
# Get the absolute path to the perltools
pwd=`pwd`
pwd=`pwd`
cd $rootdir
cd $rootdir
perltools=`pwd`
perltools=`pwd`
cd $pwd
cd $pwd
 
 
ac_do=""
ac_do=""
am_do=""
am_do=""
ci_do=""
ci_do=""
 
 
usage()
usage()
{
{
  echo
  echo
  echo "usage: ./${perltools}/${progname} [-h][-ac|-am|-ci]";
  echo "usage: ./${perltools}/${progname} [-h][-ac|-am|-ci]";
  echo
  echo
  echo "options:"
  echo "options:"
  echo "        -h .. display this message and exit";
  echo "        -h .. display this message and exit";
  echo "        -ac .. run acpolish on all autoconf Makefile.ins"
  echo "        -ac .. run acpolish on all autoconf Makefile.ins"
  echo "        -am .. run ampolish on all automake Makefile.ams"
  echo "        -am .. run ampolish on all automake Makefile.ams"
  echo "        -ci .. run cipolish on all configure.in scripts"
  echo "        -ci .. run cipolish on all configure.in scripts"
  echo
  echo
  exit 1;
  exit 1;
}
}
 
 
# Check for auxiliary files
# Check for auxiliary files
aux_files="../../VERSION ampolish acpolish cipolish"
aux_files="../../VERSION ampolish acpolish cipolish"
for i in ${aux_files}; do
for i in ${aux_files}; do
  if test ! -f ${perltools}/$i; then
  if test ! -f ${perltools}/$i; then
    echo "${progname}:"
    echo "${progname}:"
    echo "        Missing $perltools/$i"
    echo "        Missing $perltools/$i"
    exit 1;
    exit 1;
  fi
  fi
done
done
 
 
while test $# -gt 0; do
while test $# -gt 0; do
case $1 in
case $1 in
-h|--he|--hel|--help)
-h|--he|--hel|--help)
  usage ;;
  usage ;;
-ac)
-ac)
  ac_do="yes";
  ac_do="yes";
  shift ;;
  shift ;;
-am)
-am)
  am_do="yes";
  am_do="yes";
  shift ;;
  shift ;;
-ci)
-ci)
  ci_do="yes";
  ci_do="yes";
  shift ;;
  shift ;;
-*) echo "unknown option $1" ;
-*) echo "unknown option $1" ;
  usage ;;
  usage ;;
*) echo "invalid parameter $1" ;
*) echo "invalid parameter $1" ;
  usage ;;
  usage ;;
esac
esac
done
done
 
 
if test -z "$ac_do" && test -z "$am_do" && test -z "$ci_do"; then
if test -z "$ac_do" && test -z "$am_do" && test -z "$ci_do"; then
  usage
  usage
fi
fi
 
 
pwd=`pwd`;
pwd=`pwd`;
 
 
if test -n "$ac_do"; then
if test -n "$ac_do"; then
ac_files=`find . -name 'Makefile.in' -print`;
ac_files=`find . -name 'Makefile.in' -print`;
for f in $ac_files; do
for f in $ac_files; do
  i=`dirname $f`
  i=`dirname $f`
  dest="$i"
  dest="$i"
  if test ! -f $dest/Makefile.am; then
  if test ! -f $dest/Makefile.am; then
    echo "polishing : $dest/Makefile.in"
    echo "polishing : $dest/Makefile.in"
    ( cd $dest;
    ( cd $dest;
      mv Makefile.in Makefile.in~;
      mv Makefile.in Makefile.in~;
      ${perltools}/acpolish <Makefile.in~ >Makefile.in
      ${perltools}/acpolish <Makefile.in~ >Makefile.in
      rm Makefile.in~
      rm Makefile.in~
    )
    )
  fi
  fi
done
done
fi
fi
 
 
if test -n "$am_do"; then
if test -n "$am_do"; then
am_files=`find . -name 'Makefile.am' -print`;
am_files=`find . -name 'Makefile.am' -print`;
for f in $am_files; do
for f in $am_files; do
  i=`dirname $f`
  i=`dirname $f`
  dest="$i"
  dest="$i"
    echo "polishing : $dest/Makefile.am"
    echo "polishing : $dest/Makefile.am"
    ( cd $dest;
    ( cd $dest;
      mv Makefile.am Makefile.am~;
      mv Makefile.am Makefile.am~;
      ${perltools}/ampolish <Makefile.am~ >Makefile.am
      ${perltools}/ampolish <Makefile.am~ >Makefile.am
      rm Makefile.am~
      rm Makefile.am~
    )
    )
done
done
fi
fi
 
 
if test -n "$ci_do"; then
if test -n "$ci_do"; then
ci_files=`find . -name 'configure.in' -print`;
ci_files=`find . -name 'configure.in' -print`;
for f in $ci_files; do
for f in $ci_files; do
  i=`dirname $f`
  i=`dirname $f`
  dest="$i"
  dest="$i"
    echo "polishing : $dest/configure.in"
    echo "polishing : $dest/configure.in"
    ( cd $dest;
    ( cd $dest;
      mv configure.in configure.in~;
      mv configure.in configure.in~;
      ${perltools}/cipolish <configure.in~ >configure.in
      ${perltools}/cipolish <configure.in~ >configure.in
      rm configure.in~
      rm configure.in~
    )
    )
done
done
fi
fi
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.