Changeset 282cb9c in rtems


Ignore:
Timestamp:
Oct 30, 2002, 7:08:44 AM (18 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
489782d4
Parents:
30d1a28f
Message:

2002-10-30 Ralf Corsepius <corsepiu@…>

  • bootstrap: Add generate_bspdir_acinclude to automatically update c/src/lib/libbsp/<cpu>/acinclude.m4. Use #! /bin/sh instead of #!/bin/sh. Remove autom4te*.cache during ./bootstrap --clean.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r30d1a28f r282cb9c  
     12002-10-30      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * bootstrap: Add generate_bspdir_acinclude to automatically update
     4        c/src/lib/libbsp/<cpu>/acinclude.m4.
     5        Use #! /bin/sh instead of #!/bin/sh.
     6        Remove autom4te*.cache during ./bootstrap --clean.
     7
    182002-10-29      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • bootstrap

    r30d1a28f r282cb9c  
    1 #!/bin/sh
     1#! /bin/sh
    22#
    33# helps bootstrapping, when checked out from CVS
     
    3535  echo
    3636  exit 1;
     37}
     38
     39generate_bspdir_acinclude()
     40{
     41cat << EOF > acinclude.m4~
     42# RTEMS_CHECK_BSPDIR(RTEMS_BSP)
     43AC_DEFUN([RTEMS_CHECK_BSPDIR],
     44[
     45  RTEMS_BSP_ALIAS(ifelse([\$1],,[\${RTEMS_BSP}],[\$1]),bspdir)
     46  case "\$bspdir" in
     47EOF
     48
     49for i in */bsp_specs; do
     50  d=`dirname $i`
     51cat << EOF >> acinclude.m4~
     52  $d )
     53    AC_CONFIG_SUBDIRS([$d]);;
     54EOF
     55done
     56cat << EOF >> acinclude.m4~
     57  *)
     58    AC_MSG_ERROR([Invalid BSP]);;
     59  esac
     60])
     61EOF
     62if cmp -s acinclude.m4 acinclude.m4~ 2>/dev/null; then
     63  echo "acinclude.m4 is unchanged";
     64else
     65  cp acinclude.m4~ acinclude.m4
     66fi
     67rm -f acinclude.m4~
    3768}
    3869
     
    106137  ( test "$quiet" = "true" || echo "$dir";
    107138    cd $dir;
     139    test -n "`grep RTEMS_CHECK_BSPDIR ${configure}`" && \
     140      generate_bspdir_acinclude;
    108141    pat="s,\$(RTEMS_TOPdir),${aclocal_dir},g"
    109142    aclocal_args=`grep '^[ ]*ACLOCAL_AMFLAGS' Makefile.am | \
     
    159192  find . -name '.libs' -print | xargs rm -rf
    160193  find . -name 'stamp-h.in' | xargs rm -rf
     194  find . -name 'autom4te*.cache' | xargs rm -rf
    161195  ;;
    162196esac
Note: See TracChangeset for help on using the changeset viewer.