Skip to content

Commit

Permalink
datapath: Fix check-export-symbol for non-bash shells
Browse files Browse the repository at this point in the history
Avoid using a bash construct (=~) in the target.

An alternative would be to make the configure script require
bash explicitly.  (Currently it doesn't and on NetBSD /bin/ksh
is likely used.)

The code in question was introduced by
commit b296b82 .
("datapath: Check the export of public functions in linux/compat/linux/.")

Signed-off-by: YAMAMOTO Takashi <[email protected]>
Acked-by: Alex Wang <[email protected]>
  • Loading branch information
yamt committed Apr 28, 2015
1 parent 26bfaea commit d3de1af
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions datapath/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,17 @@ COMPAT_EXPORTS := $(shell $(COMPAT_GET_EXPORTS))
check-export-symbol:
@for fun_ in $(COMPAT_FUNCTIONS); do \
if ! grep -- $${fun_} $(top_srcdir)/datapath/linux/compat/build-aux/export-check-whitelist > /dev/null; then \
if [[ ! $${fun_} =~ ^rpl_* ]] \
&& [[ ! $${fun_} =~ ^ovs_* ]]; then \
if ! echo $${fun_} | grep -E '^(rpl|ovs)_'; then \
echo "Should prefix $${fun_} with rpl_ or ovs_."; \
exit 1; \
fi; \
fi; \
done
@for fun_ in $(COMPAT_EXPORTS); do \
if [[ ! $${fun_} =~ ^rpl_* ]] \
&& [[ ! $${fun_} =~ ^ovs_* ]]; then \
if ! echo $${fun_} | grep -E '^(rpl|ovs)_'; then \
echo "Should prefix $${fun_} with rpl_ or ovs_."; \
exit 1; \
fi; \
done

all-local: check-export-symbol
all-local: check-export-symbol

0 comments on commit d3de1af

Please sign in to comment.