source: rtems/aclocal/check-bsps.m4 @ d9196d1d

4.115
Last change on this file since d9196d1d was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 945 bytes
Line 
1dnl Report all available bsps for a target within the source tree
2dnl
3dnl RTEMS_CHECK_BSPS(bsp_list)
4AC_DEFUN([RTEMS_CHECK_BSPS],
5[
6AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
7AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
8
9AC_MSG_CHECKING([for available BSPs])
10  $1=
11  for bsp_spec in `ls "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU"/*/bsp_specs 2>/dev/null`; do
12    bsp_family=`echo "$bsp_spec" | sed \
13      -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/,," \
14      -e "s,/bsp_specs$,,"`
15    for bsp_cfgs in `ls "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/make/custom/"*.cfg 2>/dev/null`; do
16      bsp_cfg=`echo "$bsp_cfgs" | sed \
17        -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/make/custom/,," \
18        -e "s,\.cfg$,,"`
19      $1="[$]$1 $bsp_cfg"
20    done
21  done
22  AS_IF([test -z "[$]$1"],
23    [AC_MSG_RESULT([none])],
24    [AC_MSG_RESULT([$]$1)])
25])dnl
Note: See TracBrowser for help on using the repository browser.