aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/steps/20-sdist.sh
blob: 84246084c42e50f890e11e5fb0f5c78bcba400de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"

git init
git config --local user.email "$USER@$(hostname)"
git config --local user.name "cabal-helper CI"
git add --all
git commit -m .