Newer
Older
dub_jkp / test / issue616-describe-vs-generate-commands / do-preGenerateCommands.sh
@Nick Sabalausky Nick Sabalausky on 26 Jul 2015 373 bytes Hopefully fix for ldc/gdc.
#!/bin/sh
if [ -n "${dub_issue616}" ]; then
    echo 'Fail! preGenerateCommands recursion detected!' >&2
    exit 0  # Don't return a non-zero error code here. This way the test gives a better diagnostic.
fi

echo preGenerateCommands: DUB_PACKAGES_USED=$DUB_PACKAGES_USED >&2

export dub_issue616=true
$DUB describe --compiler=$COMPILER --data-list --data=import-paths >&2