1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-07-22 18:57:39 +02:00

make build scripts consistent

This commit is contained in:
q-posev 2021-03-25 11:41:13 +01:00
parent 95a28af6c4
commit aa160d9bea
3 changed files with 12 additions and 14 deletions

View File

@ -1,22 +1,20 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# prefixes
cat $DIR/prefix_front.c > trexio.c
cat $DIR/prefix_front.h > trexio.h
cat $DIR/prefix_s_front.h > trexio_s.h
cat $DIR/prefix_fortran.f90 > trexio_f.f90
cat prefix_front.c > trexio.c
cat prefix_front.h > trexio.h
cat prefix_s_front.h > trexio_s.h
cat prefix_fortran.f90 > trexio_f.f90
# c front end
cat $DIR/populated/pop_*.c >> trexio.c
cat $DIR/populated/pop_*.h >> trexio.h
cat populated/pop_*.c >> trexio.c
cat populated/pop_*.h >> trexio.h
# fortran front end
cat $DIR/populated/pop_*.f90 >> trexio_f.f90
cat populated/pop_*.f90 >> trexio_f.f90
# suffixes
cat $DIR/suffix_s_front.h >> trexio_s.h
cat $DIR/suffix_front.h >> trexio.h
cat $DIR/suffix_fortran.f90 >> trexio_f.f90
cat suffix_s_front.h >> trexio_s.h
cat suffix_front.h >> trexio.h
cat suffix_fortran.f90 >> trexio_f.f90

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
cat prefix_hdf5.c > trexio_hdf5.c
cat prefix_hdf5.h > trexio_hdf5.h

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
cat prefix_text.c > trexio_text.c
cat prefix_text.h > trexio_text.h