From ce485a52708aa716e94367ed13996a5018566aa4 Mon Sep 17 00:00:00 2001 From: Miro Jurisic Date: Thu, 23 Jul 1998 23:26:16 +0000 Subject: [PATCH] Removed unneeded sh scripts git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10724 dc483132-0cff-0310-8789-dd5450dbe970 --- src/mac/Makefile.tmpl | 11 ++++++++++- src/mac/macfile_gen.pl | 24 ++++++++++++++++++++++++ src/mac/macfiles.sh | 12 ------------ src/mac/mkbindirs.sh | 13 ------------- 4 files changed, 34 insertions(+), 26 deletions(-) delete mode 100644 src/mac/macfiles.sh delete mode 100644 src/mac/mkbindirs.sh diff --git a/src/mac/Makefile.tmpl b/src/mac/Makefile.tmpl index d3ac21563..c0917559e 100644 --- a/src/mac/Makefile.tmpl +++ b/src/mac/Makefile.tmpl @@ -427,6 +427,8 @@ GSSLib : GSSLibraryPPC GSSLibrary68K K5LibraryPPC K5Library68K ## ################################################################################ +# This target punts things that get created during an MPW build + clean : autogenerate-clean Delete -i {GSSOBJS68K} {GSSOBJSPPC} {GSSOBJS68KCFM} \ {K5OBJS68K} {K5OBJSPPC} {K5OBJS68KCFM} \ @@ -434,8 +436,15 @@ clean : autogenerate-clean {GSSSHLIBOBJ68KCFM} {GSSSHLIBOBJPPC} \ {K5SHLIBOBJ68KCFM} {K5SHLIBOBJPPC} +# This target also punts everything that gets created in other ways during normal +# build process (CW files etc) + dist-clean : clean - Delete -i -y /bin + Delete -i -y /bin \ + "/mac/libraries/Metrowerks/CW Pro 2/MIT C.CFM68K DLL.prj Data" \ + "/mac/libraries/Metrowerks/CW Pro 2/MIT C.PPC DLL.prj Data" \ + "/mac/libraries/Metrowerks/CW Pro 2/MIT RuntimeCFM68K DLL.prj Data" \ + "/mac/libraries/Metrowerks/CW Pro 2/MIT RuntimePPC DLL.prj Data" Delete -i GSSLib GSSLibraryPPC GSSLibrary68K K5LibraryPPC K5Library68K \ GSSLibrary68K.MAP GSSLibrary68K.SYM GSSLibraryPPC.MAP GSSLibraryPPC.xSYM \ K5Library68K.MAP K5Library68K.SYM K5LibraryPPC.MAP K5LibraryPPC.xSYM \ diff --git a/src/mac/macfile_gen.pl b/src/mac/macfile_gen.pl index 74da7b39a..a99d0fe59 100644 --- a/src/mac/macfile_gen.pl +++ b/src/mac/macfile_gen.pl @@ -7,6 +7,30 @@ if (defined ($ENV{'KERBSRCROOT'})) $ROOT='.'; } +# if we get "maclist" as a command line argument, print out a +# list of files we need. Else, generate a makefile. + +if (defined($ARGV[0]) && $ARGV[0] eq "maclist") +{ + print(STDERR "Creating maclist.\n"); + print(join(" ", &make_macfile_maclist(&make_macfile_list())), "\n"); + print(STDERR "Done.\n"); + exit; +} + +# if we get "macdirs" as a command line argument, print out a +# list of directories we need. Else, generate a makefile. + +if (defined($ARGV[0]) && $ARGV[0] eq "macdirs") +{ + print(STDERR "Creating macdirs.\n"); + @MFSRCD=grep(s/(.*:)[^:]*\.c$/$1/, &make_macfile_maclist(&make_macfile_list())); + @MFSRCD=&uniq(sort(@MFSRCD)); + print(join(" ", @MFSRCD), "\n"); + print(STDERR "Done.\n"); + exit; +} + print(STDERR "Creating makefile.\n"); @MACLIST=&make_macfile_maclist(&make_macfile_list()); diff --git a/src/mac/macfiles.sh b/src/mac/macfiles.sh deleted file mode 100644 index cd19aa1f1..000000000 --- a/src/mac/macfiles.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 diff --git a/src/mac/mkbindirs.sh b/src/mac/mkbindirs.sh deleted file mode 100644 index cdc2af202..000000000 --- a/src/mac/mkbindirs.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# -# This shell script creates the Macintosh binary hierarchies. - -topbin=$1 -shift - -for DIR do - mkdir $topbin/$DIR - for SDIR in `sed -n -e 's/MAC_SUBDIRS.*=//p' $DIR/Makefile.in`; do - /bin/sh mac/mkbindirs.sh $topbin $DIR/$SDIR; - done -done -- 2.26.2