Changeset 2f03a608 in rtems


Ignore:
Timestamp:
Jan 15, 1998, 10:48:30 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ecacc11
Parents:
87904ba
Message:

Patch from Ralf Corsepius <corsepiu@…>:

RTEMS_CHECK_FILES_IN uses a sequence of find, sort and sed to collect
all *.in files in a given subdirectory.

The current version uses : `find $1 -name $2 -print | sed 's%\.in%%' |
sort` with $1 being a subdirectory $2 set to Makefile.in.

This works as long all subdirectories start with a letter that is
lexically bigger than the letter M, but will fail otherwise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    r87904ba r2f03a608  
    22dnl
    33dnl Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de), 97/11/29
     4dnl
     5dnl Last Modified: 98/01/10
    46dnl
    57
     
    4749AC_DEFUN(RTEMS_CHECK_FILES_IN,
    4850[
    49 AC_MSG_CHECKING(for $2 in $1)
     51AC_MSG_CHECKING(for $2.in in $1)
    5052if test -d $srcdir/$1; then
    5153  rtems_av_save_dir=`pwd`;
    5254  cd $srcdir;
    53   rtems_av_tmp=`find $1 -name $2 -print | sed 's%\.in%%' | sort`;
     55  rtems_av_tmp=`find $1 -name "$2.in" -print | sed "s/$2\.in/%/" | sort | sed "s/%/$2/"`
    5456  $3="$$3 $rtems_av_tmp";
    5557  cd $rtems_av_save_dir;
     
    6668dnl
    6769AC_DEFUN(RTEMS_CHECK_MAKEFILE,
    68 [RTEMS_CHECK_FILES_IN($1,Makefile.in,makefiles)
     70[RTEMS_CHECK_FILES_IN($1,Makefile,makefiles)
    6971])
    7072
Note: See TracChangeset for help on using the changeset viewer.