Commit 7922be93 authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

Use make dist to generate snapshot

parent 05eae951
......@@ -18,20 +18,18 @@ REPO="${TMPD}/libffi"
GHASH=$(git -C ${REPO} rev-parse --short HEAD)
GDATE=$(git -C ${REPO} log -1 --pretty=format:%cd --date=format:%Y%m%d)
git -C ${REPO} archive --format=tar --prefix="libffi-${SUFFIX}/" HEAD | tar -C ${TMPD} -x
# run and remove autogen, so we don't have to run it on the CI or elsewhere
# and as such incure additional dependencies like libtool.
(cd "${TMPD}/libffi-${SUFFIX}" && ./ && rm
# run autogen and generate distribution tarball.
(cd "$REPO" && ./ && ./configure && make dist)
# package it up
(cd "${TMPD}" && tar -czf "${LIB}" "libffi-${SUFFIX}")
mv "$TMPD/$LIB" ./$LIB
# create orphan branch
# create orphan libffi-tarballs branch
git checkout --orphan "libffi-${SUFFIX}"
git add $LIB
git add $FINALLIB
cat > <<EOF
# libffi snapshot tarball for GHC
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment