File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ SCRIPTDIR = $(srcdir)
74
74
# This can be set to ":" on make command line to suppress progress messages.
75
75
ECHO_PROGRESS := echo
76
76
77
+ # Portable dos2unix / fromdos for stripping CR
78
+ FROMDOS = tr -d '\r'
79
+
77
80
# Regenerate Makefile if Makefile.in or config.status have changed.
78
81
Makefile : $(srcdir ) /Makefile.in ../../../config.status
79
82
cd ../../../ && $(SHELL ) ./config.status $(EXAMPLES ) /$(TEST_SUITE ) /$(LANGUAGE ) /Makefile
@@ -969,8 +972,7 @@ swig_and_compile_c = \
969
972
$(LANGUAGE )$(VARIANT )
970
973
971
974
swig_and_compile_multi_cpp = \
972
- for f in ` cat $( top_srcdir) /$( EXAMPLES) /$( TEST_SUITE) /$* .list ` ; do \
973
- f=` printf $$ {f} | grep -v ' ^$$' ` ; \
975
+ for f in $(cat $(top_srcdir ) /$(EXAMPLES ) /$(TEST_SUITE ) /$* .list | $(FROMDOS ) ) ; do \
974
976
$(call swig_and_compile_cpp_helper,$${f},'$(SWIGOPT ) ') ; \
975
977
done
976
978
Original file line number Diff line number Diff line change @@ -54,22 +54,21 @@ $(DOXYGEN_ERROR_TEST_CASES): SWIGOPT += -doxygen
54
54
MODULE_OPTION =-module $*
55
55
nomodule.ctest : MODULE_OPTION =
56
56
57
- # Portable dos2unix / todos for stripping CR
58
- TODOS = tr -d '\r'
59
- # TODOS = sed -e 's/\r$$//' # On Mac OS X behaves as if written 's/r$$//'
57
+ # Portable dos2unix / fromdos for stripping CR
58
+ FROMDOS = tr -d '\r'
60
59
61
60
# strip source directory from output, so that diffs compare
62
61
STRIP_SRCDIR = sed -e 's|\\|/|g' -e 's|^$(SRCDIR ) ||'
63
62
64
63
# Rules for the different types of tests
65
64
% .cpptest :
66
65
echo " $( ACTION) ing errors testcase $* "
67
- -$(SWIGINVOKE ) -c++ -python -Wall -Fstandard $(MODULE_OPTION ) $(SWIGOPT ) $(SRCDIR ) $* .i 2>&1 | $(TODOS ) | $(STRIP_SRCDIR ) > $* .$(ERROR_EXT )
66
+ -$(SWIGINVOKE ) -c++ -python -Wall -Fstandard $(MODULE_OPTION ) $(SWIGOPT ) $(SRCDIR ) $* .i 2>&1 | $(FROMDOS ) | $(STRIP_SRCDIR ) > $* .$(ERROR_EXT )
68
67
$(COMPILETOOL ) diff -c $(SRCDIR ) $* .stderr $* .$(ERROR_EXT )
69
68
70
69
% .ctest :
71
70
echo " $( ACTION) ing errors testcase $* "
72
- -$(SWIGINVOKE ) -python -Wall -Fstandard $(MODULE_OPTION ) $(SWIGOPT ) $(SRCDIR ) $* .i 2>&1 | $(TODOS ) | $(STRIP_SRCDIR ) > $* .$(ERROR_EXT )
71
+ -$(SWIGINVOKE ) -python -Wall -Fstandard $(MODULE_OPTION ) $(SWIGOPT ) $(SRCDIR ) $* .i 2>&1 | $(FROMDOS ) | $(STRIP_SRCDIR ) > $* .$(ERROR_EXT )
73
72
$(COMPILETOOL ) diff -c $(SRCDIR ) $* .stderr $* .$(ERROR_EXT )
74
73
75
74
% .clean :
You can’t perform that action at this time.
0 commit comments