source: rtems/c/src/aclocal/bsp-configure.m4 @ f2e0f8e

5
Last change on this file since f2e0f8e 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: 1.3 KB
Line 
1dnl RTEMS_BSP_CONFIGURE
2dnl Common macro to be included by all bsp-configure.acs
3AC_DEFUN([RTEMS_BSP_CONFIGURE],
4[
5  AC_PREREQ(2.60)
6  AM_MAINTAINER_MODE
7  RTEMS_ENV_RTEMSBSP
8
9  RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
10
11  AC_CONFIG_HEADERS([include/bspopts.tmp:include/bspopts.h.in],[
12echo "/* BSP dependent options file */"         >$tmp/config.h
13echo "/* automatically generated -- DO NOT EDIT!! */" >>$tmp/config.h
14echo                                                  >>$tmp/config.h
15echo "#ifndef __BSP_OPTIONS_H"                        >>$tmp/config.h
16echo "#define __BSP_OPTIONS_H"                        >>$tmp/config.h
17echo                                                  >>$tmp/config.h
18sed \
19  -e '/.*PACKAGE.*/d' \
20  -e '/\/\* Define to.*this package.*\*\//d' \
21include/bspopts.tmp >> $tmp/config.h
22echo                                                  >>$tmp/config.h
23echo "#endif /* __BSP_OPTIONS_H */"                   >>$tmp/config.h
24  AS_IF([cmp -s include/bspopts.h $tmp/config.h 2>/dev/null],[
25    AC_MSG_NOTICE([include/bspopts.h is unchanged])
26    rm -f $tmp/config.h],[
27    AC_MSG_NOTICE([creating include/bspopts.h])
28    rm -f include/bspopts.h
29    mv $tmp/config.h include/bspopts.h
30  ])
31])
32  RTEMS_PROJECT_ROOT
33
34  RTEMS_CHECK_MULTIPROCESSING
35
36  RTEMS_BSP_BOOTCARD_OPTIONS
37])
Note: See TracBrowser for help on using the repository browser.