aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-10-03 16:06:15 +0100
committerDavid Baker <dave@matrix.org>2018-10-03 16:06:15 +0100
commit3e775938e50bffdfcb20241d598fea74ddaaf7e0 (patch)
treeaa27cb1cac2066a9b09ab7f95960a1f278cf80eb /Makefile
parentb1beadaceeac5556c5e4932155a58c300cf1d39b (diff)
Replace the impenetrable line of perl with python
Mostly because the standard emscripten docker image does not have libjson-perl, but python always comes with json. But also because it was impenetrable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 154954c..901e78f 100644
--- a/Makefile
+++ b/Makefile
@@ -164,7 +164,7 @@ fuzzers: $(FUZZER_BINARIES) $(FUZZER_DEBUG_BINARIES)
.PHONY: fuzzers
$(JS_EXPORTED_FUNCTIONS): $(PUBLIC_HEADERS)
- perl -MJSON -ne '$$f{"_$$1"}=1 if /(olm_[^( ]*)\(/; END { @f=sort keys %f; print encode_json \@f }' $^ > $@.tmp
+ ./exports.py $^ > $@.tmp
mv $@.tmp $@
all: test js lib debug doc