+2007-09-04 Wade Berrier <wberrier@novell.com>
+
+ * library.make: Glob for .sources for all profiles.
+ Use tools/removecomments.sh to account for '#include' and
+ comments, which are only used in the jvm profile at this point
+
2007-09-01 Jb Evain <jbevain@novell.com>
* Makefile: consider the net_2_1 profile.
$(TEST_HARNESS_POSTPROC_ONDOTNET) ; $$ok
endif
-DISTFILES = $(sourcefile) $(EXTRA_DISTFILES)
+DISTFILES = $(wildcard *$(LIBRARY)*.sources) $(EXTRA_DISTFILES)
TEST_FILES =
DISTFILES += $(btest_sourcefile)
endif
+# make dist will collect files in .sources files from all profiles
dist-local: dist-default
subs=' ' ; \
- for f in `cat $(sourcefile)` $(TEST_FILES) ; do \
+ for f in `$(topdir)/tools/removecomments.sh $(wildcard *$(LIBRARY).sources)` $(TEST_FILES) ; do \
case $$f in \
../*) : ;; \
*) dest=`dirname $$f` ; \
+2007-09-04 Wade Berrier <wberrier@novell.com>
+
+ * removecomments.sh: New script to aid 'make dist'
+ Removes '#' comments (specifically for .sources files)
+ Had to put in a separate script because alterint IFS to
+ contain a newline doesn't work inside make
+
+ * Makefile: include gensources.sh, the 2_1 profile needs it.
+ (Should also make it possible to build the jvm profile from a tarball)
+
2007-07-27 Jb Evain <jbevain@novell.com>
* Makefile: integrate the tuner in the build.
mono-win32-setup.nsi \
scan-tests.pl \
tinderbox/smtp.c \
- tinderbox/tinderbox.sh
+ tinderbox/tinderbox.sh \
+ gensources.sh
test-local run-test-local run-test-ondotnet-local all-local install-local uninstall-local:
@:
--- /dev/null
+#!/bin/sh
+
+# Remove comments from .sources files since this usage of IFS is unsuable inside make
+# (trouble with newlines)
+
+source_files="$@"
+
+OIFS=$IFS
+
+for f in $source_files ; do
+ IFS='
+\r'
+ for f in $(cat $f) ; do
+ case $f in
+ \#*) ;;
+ *) echo $f ;;
+ esac
+ done
+ OIFS=$IFS
+done
+
+IFS=$OIFS
+