summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorNarayanan V <v.narayanan@sun.com>2008-07-22 18:05:22 +0530
committerNarayanan V <v.narayanan@sun.com>2008-07-22 18:05:22 +0530
commitcadcb867bc51dcbfa1df46759d6ece2580fa1e64 (patch)
treea7d6d7a39b556ee0ba18dbc4bcd26cf15ad5861c /Makefile.am
parent459480f81df63a2279475b9387deb5f89e378c03 (diff)
downloadmariadb-git-cadcb867bc51dcbfa1df46759d6ece2580fa1e64.tar.gz
WL#4380
1) When gcc -E is run in the Mac OS it introduces a line of output that results in showing up as a difference between the .pp and .out files. Removed this OS specific preprocessor text inserted by the preprocessor in the MAC OS. Added a sed regular expression to remove MAC OS specific pre-processor text. 2) Added the -w option to diff to remove the differences in output being caused in solaris.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 82f7d2ab20f..222785ea3b1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -257,9 +257,14 @@ TEST_PREPROCESSOR_HEADER = $(top_srcdir)/include/mysql/plugin.h \
# results in messages in stderr saying that these headers
# were not found. Redirect the stderr output to /dev/null
# to prevent seeing these messages.
-# 2) sed the output to remove blank lines and lines that begin
-# with # (The header information is retained to enable easy
-# analysis of abi diffs at a later stage).
+# 2) sed the output to
+# 2.1) remove blank lines and lines that begin with "# "
+# (The header information is retained to enable easy
+# analysis of abi diffs at a later stage).
+# 2.2) When gcc -E is run in the Mac OS it introduces a line of output
+# that results in showing up as a difference between the .pp and
+# .out files. Remove this OS specific preprocessor text inserted by
+# the preprocessor in the MAC OS.
# 3) diff the generated file and the canons (.pp files already in
# the repository).
# 4) delete the .out file that is generated.
@@ -298,8 +303,10 @@ do_abi_check:
-I$(top_builddir)/sql \
$$file 2>/dev/null | \
@SED@ -e '/^# /d' \
- -e '/^[ ]*$$/d' > $(top_builddir)/abi_check.out; \
- @DIFF@ -b $$file.pp $(top_builddir)/abi_check.out; \
+ -e '/^[ ]*$$/d' \
+ -e '/^#pragma GCC set_debug_pwd/d' > \
+ $(top_builddir)/abi_check.out; \
+ @DIFF@ -wB $$file.pp $(top_builddir)/abi_check.out; \
@RM@ $(top_builddir)/abi_check.out; \
done