#! /usr/bin/env bash if [[ $OS != linux ]]; then exit 0; fi TEST_DIR=${OUTPUT_BASE} # create two libraries with the first depending on the second # so that if they're given the wrong order on the commandline, # linking would ordinarily fail D_LIBFILE1=$TEST_DIR/first.d D_LIBFILE2=$TEST_DIR/second.d D_LIB1=$TEST_DIR/libfirst.a D_LIB2=$TEST_DIR/libsecond.a # call from D D_FILE=$TEST_DIR/test.d APP=$TEST_DIR/test mkdir -p $TEST_DIR cat >$D_LIBFILE1 <$D_LIBFILE2 <$D_FILE <