From 44f615857b6320af78b5232ac5fe82aa38a57655 Mon Sep 17 00:00:00 2001 From: q-posev Date: Sat, 13 Mar 2021 20:21:32 +0100 Subject: [PATCH] add shell scripts to compile populated files --- src/templates_front/build.sh | 13 +++++++++++++ src/templates_hdf5/build.sh | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/templates_front/build.sh create mode 100644 src/templates_hdf5/build.sh diff --git a/src/templates_front/build.sh b/src/templates_front/build.sh new file mode 100644 index 0000000..62062dc --- /dev/null +++ b/src/templates_front/build.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +cat prefix_front.c > trexio.c +cat prefix_front.h > trexio.h +cat prefix_s_front.h > trexio_s.h + +cat populated/pop_*.c >> trexio.c +cat populated/pop_*.h >> trexio.h + +cat suffix_s_front.h >> trexio_s.h +cat suffix_front.h >> trexio.h + + diff --git a/src/templates_hdf5/build.sh b/src/templates_hdf5/build.sh new file mode 100644 index 0000000..213bdb3 --- /dev/null +++ b/src/templates_hdf5/build.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +cat prefix_hdf5.c > trexio_hdf5.c +cat prefix_hdf5.h > trexio_hdf5.h + +cat populated/pop_def_hdf5.c >> trexio_hdf5.c +cat populated/pop_struct_hdf5.h >> trexio_hdf5.h + +cat populated/pop_basic_hdf5.c >> trexio_hdf5.c +cat populated/pop_read_dset_hdf5.c >> trexio_hdf5.c +cat populated/pop_read_num_hdf5.c >> trexio_hdf5.c +cat populated/pop_write_dset_hdf5.c >> trexio_hdf5.c +cat populated/pop_write_num_hdf5.c >> trexio_hdf5.c +cat populated/pop_rw_num_hdf5.h >> trexio_hdf5.h +cat populated/pop_rw_dset_hdf5.h >> trexio_hdf5.h + +cat suffix_hdf5.h >> trexio_hdf5.h +