blob: cd19aa1f157f8ac227350bd2bf0f88fe2e72eb21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
for DIR do
for SDIR in `sed -n -e 's/MAC_SUBDIRS.*=//p' $DIR/Makefile.in`; do
awk '/^MACSRCS?[ ]*=/, /[^\\]$/' $DIR/$SDIR/Makefile.in | \
tr ' ' '\012\012' | sed -n -e 's|.*[/)]\([A-Za-z0-9_]*\.c\).*|\1|' -e 's|\(.*\.c\)|'$DIR/$SDIR'/\1|p';
awk '/^SRCS?[ ]*=/, /[^\\]$/' $DIR/$SDIR/Makefile.in | \
tr ' ' '\012\012' | sed -n -e 's|.*[/)]\([A-Za-z0-9_]*\.c\).*|\1|' -e 's|\(.*\.c\)|'$DIR/$SDIR'/\1|p';
ls -1 $DIR/$SDIR/*.h 2> /dev/null
/bin/sh mac/macfiles.sh $DIR/$SDIR;
done
done
|