Expand here-document

Debian /bin/sh cannot handle it.
This commit is contained in:
Lassi Kortela 2019-08-13 23:41:43 +03:00
parent c14c723859
commit d69ad59126
1 changed files with 26 additions and 7 deletions

View File

@ -5,13 +5,32 @@ CFLAGS="$CFLAGS -O2" # -falign-functions
CFLAGS="$CFLAGS -I ../c -D NDEBUG -D USE_COMPUTED_GOTO" CFLAGS="$CFLAGS -I ../c -D NDEBUG -D USE_COMPUTED_GOTO"
LFLAGS="-lm" LFLAGS="-lm"
os="$(uname | tr A-Z- a-z_)" os="$(uname | tr A-Z- a-z_)"
read -d '' o_files <<EOF || true o_files=""
bitvector-ops.o bitvector.o buf.o builtins.o dump.o env_unix.o o_files="$o_files bitvector-ops.o"
equalhash.o flisp.o flmain.o fs_$os.o fs_unix.o o_files="$o_files bitvector.o"
hashing.o htable.o int2str.o o_files="$o_files buf.o"
ios.o iostream.o libraries.o lltinit.o ptrhash.o random.o socket.o o_files="$o_files builtins.o"
string.o table.o time_unix.o utf8.o o_files="$o_files dump.o"
EOF o_files="$o_files env_unix.o"
o_files="$o_files equalhash.o"
o_files="$o_files flisp.o"
o_files="$o_files flmain.o"
o_files="$o_files fs_$os.o"
o_files="$o_files fs_unix.o"
o_files="$o_files hashing.o"
o_files="$o_files htable.o"
o_files="$o_files int2str.o"
o_files="$o_files ios.o"
o_files="$o_files iostream.o"
o_files="$o_files libraries.o"
o_files="$o_files lltinit.o"
o_files="$o_files ptrhash.o"
o_files="$o_files random.o"
o_files="$o_files socket.o"
o_files="$o_files string.o"
o_files="$o_files table.o"
o_files="$o_files time_unix.o"
o_files="$o_files utf8.o"
case "$os" in case "$os" in
darwin) darwin)
default_cc="clang" default_cc="clang"