1 2 3 4 5 6
mkdir -p "$source_dir" mkdir -p "$build_dir" cabal --sandbox-config="$sandbox_config" sdist --builddir="$build_dir" --output-directory="$source_dir" cd "$source_dir"