Basic media infra
authorLauri Kasanen <cand@gmx.com>
Wed, 19 May 2021 10:02:53 +0000 (13:02 +0300)
committerLauri Kasanen <cand@gmx.com>
Wed, 19 May 2021 10:02:53 +0000 (13:02 +0300)
media/.gitignore [new file with mode: 0644]
media/Makefile [new file with mode: 0644]

diff --git a/media/.gitignore b/media/.gitignore
new file mode 100644 (file)
index 0000000..1269488
--- /dev/null
@@ -0,0 +1 @@
+data
diff --git a/media/Makefile b/media/Makefile
new file mode 100644 (file)
index 0000000..e50c997
--- /dev/null
@@ -0,0 +1,19 @@
+.PHONY: all wget tests
+
+EXPECTED_VER = 1
+VER = $(shell cat data/VERSION)
+
+all:
+ifneq ($(VER), $(EXPECTED_VER))
+       $(error Data not found, or version mismatch. Please run "make wget")
+endif
+       @$(MAKE) tests
+
+wget:
+       mkdir -p data
+       rm media-test-data.txz
+       wget https://ftp.libre-soc.org/media-test-data.txz
+       tar -C data -xvf media-test-data.txz
+
+tests:
+       echo juuh