summaryrefslogtreecommitdiff
path: root/libs/cairo-1.16.0/src/check-preprocessor-syntax.sh
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-12 23:53:22 -0600
committersanine <sanine.not@pm.me>2023-02-12 23:53:22 -0600
commitf1fe73d1909a2448a004a88362a1a532d0d4f7c3 (patch)
treeab37ae3837e2f858de2932bcee9f26e69fab3db1 /libs/cairo-1.16.0/src/check-preprocessor-syntax.sh
parentf567ea1e2798fd3156a416e61f083ea3e6b95719 (diff)
switch to tinyobj and nanovg from assimp and cairo
Diffstat (limited to 'libs/cairo-1.16.0/src/check-preprocessor-syntax.sh')
-rwxr-xr-xlibs/cairo-1.16.0/src/check-preprocessor-syntax.sh59
1 files changed, 0 insertions, 59 deletions
diff --git a/libs/cairo-1.16.0/src/check-preprocessor-syntax.sh b/libs/cairo-1.16.0/src/check-preprocessor-syntax.sh
deleted file mode 100755
index b718f60..0000000
--- a/libs/cairo-1.16.0/src/check-preprocessor-syntax.sh
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-
-LC_ALL=C
-export LC_ALL
-
-test -z "$srcdir" && srcdir=.
-cd "$srcdir"
-stat=0
-
-
-HEADERS=$all_cairo_headers
-test "x$HEADERS" = x && HEADERS=`find . -name 'cairo*.h' ! -name 'cairo*-private.h' ! -name 'cairo*-inline.h' ! -name 'cairoint.h'`
-
-PRIVATE=$all_cairo_private
-test "x$PRIVATE" = x && PRIVATE=`find . -name 'cairo*-private.h' -or -name 'cairo*-inline.h' -or -name 'cairoint.h'`
-
-SOURCES=$all_cairo_sources
-test "x$SOURCES" = x && SOURCES=`find . -name 'cairo*.c' -or -name 'cairo*.cpp'`
-
-ALL="/dev/null $HEADERS $PRIVATE $SOURCES"
-
-echo 'Checking that public header files #include "cairo.h" first (or none)'
-
-for x in $HEADERS; do
- grep '#.*\<include\>' "$x" /dev/null | head -n 1
-done |
-grep -v '"cairo[.]h"' |
-grep -v 'cairo[.]h:' |
-grep . >&2 && stat=1
-
-
-echo 'Checking that private header files #include "some cairo header" first (or none)'
-
-for x in $PRIVATE; do
- grep '#.*\<include\>' "$x" /dev/null | head -n 1
-done |
-grep -v '"cairo.*[.]h"' |
-grep -v 'cairoint[.]h:' |
-grep . >&2 && stat=1
-
-
-echo 'Checking that source files #include "cairoint.h" first (or none)'
-
-for x in $SOURCES; do
- grep '#.*\<include\>' "$x" /dev/null | head -n 1
-done |
-grep -v '"cairoint[.]h"' |
-grep . >&2 && stat=1
-
-
-echo 'Checking that there is no #include <cairo.*.h>'
-grep '#.*\<include\>.*<.*cairo' $ALL >&2 && stat=1
-
-
-echo 'Checking that feature conditionals are used with #if only (not #ifdef)'
-grep '#ifdef CAIRO_HAS_' $ALL && stat=1
-grep '#if.*defined[ ]*(CAIRO_HAS_' $ALL && stat=1
-
-exit $stat