summaryrefslogtreecommitdiff
path: root/src/make-cairo-def.sh
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2023-01-21 17:16:27 +1030
committerAdrian Johnson <ajohnson@redneon.com>2023-01-21 17:19:17 +1030
commit3cc9e198fdcb81ba26c47ecc95d05ed2ed72c534 (patch)
tree93c8f951d0e0a9a628c337841e6c40918459399a /src/make-cairo-def.sh
parent7072f62611f43cc1311b76f111fdd1e96278b4e4 (diff)
downloadcairo-3cc9e198fdcb81ba26c47ecc95d05ed2ed72c534.tar.gz
Silence make-cairo-def.sh output
This removes the following output: Generating src/cairo.def <stdin>:6:9: warning: #pragma once in main file <stdin>:4377:9: warning: #pragma once in main file
Diffstat (limited to 'src/make-cairo-def.sh')
-rw-r--r--src/make-cairo-def.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/make-cairo-def.sh b/src/make-cairo-def.sh
index 664df0887..1a1f366e8 100644
--- a/src/make-cairo-def.sh
+++ b/src/make-cairo-def.sh
@@ -14,11 +14,12 @@ def_file="$1"
cairo_features_h="$2"
shift 2
-echo Generating $def_file
+#echo Generating $def_file
+
(echo EXPORTS; \
(cat $* || echo 'cairo_ERROR ()' ) | \
egrep -v '^# *include' | \
- ( cat "$cairo_features_h" - | cpp -D__cplusplus - || echo 'cairo_ERROR ()' ) | \
+ ( cat "$cairo_features_h" - | egrep -v '^#pragma' | cpp -D__cplusplus - || echo 'cairo_ERROR ()' ) | \
egrep '^cairo_.* \(' | \
sed -e 's/[ ].*//' | \
sort; \