changeset 7:0cb57782715e

trau-files: generate human-readable dumps
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 24 May 2024 18:53:28 +0000
parents 50f73e4d09e8
children 85662304252e
files .hgignore trau-files/Makefile
diffstat 2 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Fri May 24 18:40:55 2024 +0000
+++ b/.hgignore	Fri May 24 18:53:28 2024 +0000
@@ -3,3 +3,5 @@
 \.[oa]$
 
 ^trau-decode/trau-parse$
+
+^trau-files/.*\.dump$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trau-files/Makefile	Fri May 24 18:53:28 2024 +0000
@@ -0,0 +1,22 @@
+EFR_BIN=	e1_ts2_efr.bin
+FR1_BIN=	e1_ts2_fr.bin
+PARSE_TOOL=	../trau-decode/trau-parse
+
+DUMPS=	fr-leg1.dump fr-leg2.dump efr-leg1.dump efr-leg2.dump
+
+all:	${DUMPS}
+
+fr-leg1.dump:	${FR1_BIN} ${PARSE_TOOL}
+	${PARSE_TOOL} ${FR1_BIN} 1 > $@
+
+fr-leg2.dump:	${FR1_BIN} ${PARSE_TOOL}
+	${PARSE_TOOL} ${FR1_BIN} 2 > $@
+
+efr-leg1.dump:	${EFR_BIN} ${PARSE_TOOL}
+	${PARSE_TOOL} ${EFR_BIN} 1 > $@
+
+efr-leg2.dump:	${EFR_BIN} ${PARSE_TOOL}
+	${PARSE_TOOL} ${EFR_BIN} 2 > $@
+
+clean:
+	rm -f *.dump