diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-23 15:35:27 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-23 15:35:27 -0400 |
commit | 41357ebccf9f6a73b8f11c9d335a0f970e793b32 (patch) | |
tree | c31eefde311890a7993465eed5524929877992ff /build.sh | |
parent | e14c1ec09938fded86c568033ec58888dd93f271 (diff) | |
download | dm-41357ebccf9f6a73b8f11c9d335a0f970e793b32.tar.gz |
non-dub build.sh script
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ca680cf --- /dev/null +++ b/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash +set -x +prog=dm +extern=.extern +DFLAGS="-w -g -O" + +build_tinyendian() { + pushd ${extern} + git clone --recursive https://github.com/dlang-community/tinyendian + pushd tinyendian + git checkout v0.2.0 + dmd ${DFLAGS} -lib -oflibtinyendian.a \ + $(find source -type f -name '*.d') + popd + popd +} + +build_dyaml() { + pushd ${extern} + git clone --recursive https://github.com/dlang-community/D-YAML + pushd D-YAML + git checkout v0.7.1 + dmd ${DFLAGS} -lib -oflibdyaml.a \ + -I../tinyendian/source \ + ../tinyendian/libtinyendian.a \ + $(find source -type f -name '*.d') + popd + popd +} + + +mkdir -p ${extern} +build_tinyendian +build_dyaml +dmd ${DFLAGS} -of${prog} \ + -I${extern}/tinyendian/source \ + -I${extern}/D-YAML/source \ + ${extern}/D-YAML/libdyaml.a \ + $(find source -type f -name '*.d') |