|
Revision 83f88155046151da849352a78149ab2fc90dd794, 459 bytes
(checked in by Rémi Denis-Courmont <rem@videolan.org>, 1 month ago)
|
Export WORDS_BIGENDIAN to pkg-config unless someone knows better
|
- Property mode set to
100755
|
| Line | |
|---|
| 1 |
#! /bin/sh |
|---|
| 2 |
# Copyright © 2008 Rémi Denis-Courmont |
|---|
| 3 |
|
|---|
| 4 |
cd "$(dirname "$0")" || exit $? |
|---|
| 5 |
|
|---|
| 6 |
# Look for configure #defines in public headers. |
|---|
| 7 |
# There are incorrect, as external users don't have our <config.h>. |
|---|
| 8 |
regexp="$(cat ../config.h.in | \ |
|---|
| 9 |
sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \ |
|---|
| 10 |
grep -v 'WORDS_BIGENDIAN' | \ |
|---|
| 11 |
xargs | \ |
|---|
| 12 |
sed -e 's/ /\\\|/g')" |
|---|
| 13 |
|
|---|
| 14 |
echo Looking for private defines in public headers... |
|---|
| 15 |
! grep -- "$regexp" "$@" || exit $? |
|---|
| 16 |
echo "None found." |
|---|