summaryrefslogtreecommitdiffstats
path: root/src/mac/macfiles.sh
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1996-02-07 05:30:24 +0000
committerTheodore Tso <tytso@mit.edu>1996-02-07 05:30:24 +0000
commit1beb992505eeb0faa107ebe140aa7a6a2a53d3e3 (patch)
tree9815040240029c1988edf1d9cba07b6b7aa91e59 /src/mac/macfiles.sh
parenta6b669132f87a17a2cdd6d804f4c048e15219137 (diff)
downloadkrb5-1beb992505eeb0faa107ebe140aa7a6a2a53d3e3.tar.gz
krb5-1beb992505eeb0faa107ebe140aa7a6a2a53d3e3.tar.xz
krb5-1beb992505eeb0faa107ebe140aa7a6a2a53d3e3.zip
Folded in danw's changes to allow building Makefiles for the
Macintosh. We now can build MPW makefiles which are interpreted by CodeWarrior. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7444 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/mac/macfiles.sh')
-rw-r--r--src/mac/macfiles.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mac/macfiles.sh b/src/mac/macfiles.sh
new file mode 100644
index 000000000..1e334b291
--- /dev/null
+++ b/src/mac/macfiles.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+for DIR do
+ for SDIR in `sed -n -e 's/MAC_SUBDIRS.*=//p' $DIR/Makefile.in`; do
+ 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
+ mac/macfiles.sh $DIR/$SDIR;
+ done
+done