aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/steps/20-sdist.sh
blob: 329aa86352bd8b40fc7a8faf6c37f1334c5c58cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mkdir -p "$source_dir"
mkdir -p "$build_dir"

cabal act-as-setup -- sdist --output-directory="$source_dir"
cp cabal.project "$source_dir"/cabal.project

if [ -d cabal-plan/ ]; then
        (
            cd cabal-plan/
            cabal act-as-setup -- sdist --output-directory="$source_dir/cabal-plan"
        )
fi

cd "$source_dir"