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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [bootstrap] - Diff between revs 208 and 1765

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

Rev 208 Rev 1765
#!/bin/sh
#!/bin/sh
#
#
# helps bootstrapping, when checked out from CVS
# helps bootstrapping, when checked out from CVS
# requires GNU autoconf and GNU automake
# requires GNU autoconf and GNU automake
#
#
# $Id: bootstrap,v 1.2 2001-09-27 11:59:04 chris Exp $
# $Id: bootstrap,v 1.2 2001-09-27 11:59:04 chris Exp $
# this is not meant to be exported outside the source tree
# this is not meant to be exported outside the source tree
# NOTE: Inspired by libtool's autogen script
# NOTE: Inspired by libtool's autogen script
# to be run from the toplevel directory of RTEMS'
# to be run from the toplevel directory of RTEMS'
# source tree
# source tree
progname=`basename $0`
progname=`basename $0`
top_srcdir=`dirname $0`
top_srcdir=`dirname $0`
verbose="";
verbose="";
quiet="false"
quiet="false"
mode="generate"
mode="generate"
usage()
usage()
{
{
  echo
  echo
  echo "usage: ${progname} [-h|-q|-v]"
  echo "usage: ${progname} [-h|-q|-v]"
  echo
  echo
  echo "options:"
  echo "options:"
  echo "        -h .. display this message and exit";
  echo "        -h .. display this message and exit";
  echo "        -q .. quiet, don't display directories";
  echo "        -q .. quiet, don't display directories";
  echo "        -v .. verbose, pass -v to automake when invoking automake"
  echo "        -v .. verbose, pass -v to automake when invoking automake"
  echo "        -c .. clean, remove all aclocal/autoconf/automake generated files"
  echo "        -c .. clean, remove all aclocal/autoconf/automake generated files"
  echo
  echo
  exit 1;
  exit 1;
}
}
if test ! -f $top_srcdir/VERSION; then
if test ! -f $top_srcdir/VERSION; then
  echo "${progname}:"
  echo "${progname}:"
  echo "        Installation problem: Can't find file VERSION"
  echo "        Installation problem: Can't find file VERSION"
  exit 1;
  exit 1;
fi
fi
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 ;;
-q|--qu|--qui|--quie|--quiet)
-q|--qu|--qui|--quie|--quiet)
  quiet="true";
  quiet="true";
  shift;;
  shift;;
-v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
-v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
  verbose="-v";
  verbose="-v";
  shift;;
  shift;;
-c|--cl|--cle|--clea|--clean)
-c|--cl|--cle|--clea|--clean)
  mode="clean";
  mode="clean";
  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
case $mode in
case $mode in
generate)
generate)
  case $top_srcdir in
  case $top_srcdir in
  /* ) aclocal_dir=$top_srcdir/aclocal
  /* ) aclocal_dir=$top_srcdir/aclocal
    ;;
    ;;
  *) aclocal_dir=`pwd`/$top_srcdir/aclocal
  *) aclocal_dir=`pwd`/$top_srcdir/aclocal
    ;;
    ;;
  esac
  esac
  confs=`find . -name 'configure.in' -print`
  confs=`find . -name 'configure.in' -print`
  for i in $confs; do
  for i in $confs; do
  dir=`dirname $i`;
  dir=`dirname $i`;
  ( test "$quiet" = "true" || echo "$dir";
  ( test "$quiet" = "true" || echo "$dir";
    cd $dir;
    cd $dir;
    aclocal -I $aclocal_dir;
    aclocal -I $aclocal_dir;
    autoconf;
    autoconf;
    test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
    test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
    test -f Makefile.am && automake $verbose ;
    test -f Makefile.am && automake $verbose ;
    test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \
    test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \
      && echo timestamp > stamp-h.in
      && echo timestamp > stamp-h.in
  )
  )
  done
  done
  ;;
  ;;
clean)
clean)
  test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
  test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
  files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;
  files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;
  for i in $files; do if test -f $i; then
  for i in $files; do if test -f $i; then
    rm -f $i
    rm -f $i
    test "$verbose" = "-v" && echo "$i"
    test "$verbose" = "-v" && echo "$i"
  fi; done
  fi; done
  test "$quiet" = "true" || echo "removing configure files"
  test "$quiet" = "true" || echo "removing configure files"
  files=`find . -name 'configure' -print` ;
  files=`find . -name 'configure' -print` ;
  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
  for i in $files; do if test -f $i; then
  for i in $files; do if test -f $i; then
    rm -f $i
    rm -f $i
    test "$verbose" = "-v" && echo "$i"
    test "$verbose" = "-v" && echo "$i"
  fi; done
  fi; done
  test "$quiet" = "true" || echo "removing aclocal.m4 files"
  test "$quiet" = "true" || echo "removing aclocal.m4 files"
  files=`find . -name 'aclocal.m4' -print` ;
  files=`find . -name 'aclocal.m4' -print` ;
  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
  for i in $files; do if test -f $i; then
  for i in $files; do if test -f $i; then
    rm -f $i
    rm -f $i
    test "$verbose" = "-v" && echo "$i"
    test "$verbose" = "-v" && echo "$i"
  fi; done
  fi; done
  find . -name '*~' -print | xargs rm -f
  find . -name '*~' -print | xargs rm -f
  find . -name '*.orig' -print | xargs rm -f
  find . -name '*.orig' -print | xargs rm -f
  find . -name '*.rej' -print | xargs rm -f
  find . -name '*.rej' -print | xargs rm -f
  find . -name 'config.status' -print | xargs rm -f
  find . -name 'config.status' -print | xargs rm -f
  find . -name 'config.log' -print | xargs rm -f
  find . -name 'config.log' -print | xargs rm -f
  find . -name 'config.cache' -print | xargs rm -f
  find . -name 'config.cache' -print | xargs rm -f
  find . -name 'Makefile' -print | xargs rm -f
  find . -name 'Makefile' -print | xargs rm -f
  find . -name '.deps' -print | xargs rm -rf
  find . -name '.deps' -print | xargs rm -rf
  find . -name '.libs' -print | xargs rm -rf
  find . -name '.libs' -print | xargs rm -rf
  find . -name 'stamp-h.in' | xargs rm -rf
  find . -name 'stamp-h.in' | xargs rm -rf
  ;;
  ;;
esac
esac
 
 

powered by: WebSVN 2.1.0

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