From da7bb64e7f81ee33b33a84fc0dfd21b153f6b227 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sun, 12 Mar 2017 22:57:44 +0000 Subject: Add webassembly --- magic/Magdir/webassembly | 14 ++++++++++++++ magic/Makefile.am | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 magic/Magdir/webassembly diff --git a/magic/Magdir/webassembly b/magic/Magdir/webassembly new file mode 100644 index 00000000..4284efb1 --- /dev/null +++ b/magic/Magdir/webassembly @@ -0,0 +1,14 @@ +#------------------------------------------------------------------------------ +# $File: webassembly,v 1.1 2017/03/12 22:57:44 christos Exp $ +# webassembly: file(1) magic for WebAssembly modules +# +# WebAssembly is a virtual architecture developed by a W3C Community +# Group at http://webassembly.org/. The file extension is .wasm, and +# the MIME type is application/wasm. +# +# http://webassembly.org/docs/binary-encoding/ is the main +# document describing the binary format. +# From: Pip Cet + +0 lelong 0x6d736100 WebAssembly module +>4 lelong x \b, version %d diff --git a/magic/Makefile.am b/magic/Makefile.am index 92584f32..e39ebeaa 100644 --- a/magic/Makefile.am +++ b/magic/Makefile.am @@ -1,5 +1,5 @@ # -# $File: Makefile.am,v 1.122 2016/11/09 18:20:53 christos Exp $ +# $File: Makefile.am,v 1.123 2017/03/12 22:57:44 christos Exp $ # MAGIC_FRAGMENT_BASE = Magdir MAGIC_DIR = $(top_srcdir)/magic @@ -276,6 +276,7 @@ $(MAGIC_FRAGMENT_DIR)/vorbis \ $(MAGIC_FRAGMENT_DIR)/vxl \ $(MAGIC_FRAGMENT_DIR)/warc \ $(MAGIC_FRAGMENT_DIR)/weak \ +$(MAGIC_FRAGMENT_DIR)/webassembly \ $(MAGIC_FRAGMENT_DIR)/windows \ $(MAGIC_FRAGMENT_DIR)/wireless \ $(MAGIC_FRAGMENT_DIR)/wordprocessors \ -- cgit v1.2.1