3 CLONEURL
=https
://git.haproxy.org
/git
/haproxy-2.8.git
8 if test -d "${TMP_REPODIR}"; then rm -rf "${TMP_REPODIR}"; fi
10 git clone
"${CLONEURL}" "${TMP_REPODIR}"
12 printf "Cleaning patches\n"
13 find ${PATCHESDIR} -type f
-name "*.patch" -exec rm -f "{}" \
;
16 for cid
in $
(git
-C "${TMP_REPODIR}" rev-list
${BASE_TAG}..HEAD |
tac); do
17 filename
="$(printf "%03d
" $i)-$(git -C "${TMP_REPODIR}" log --format=%s -n 1 "$cid" | sed -e"s
/[()']//g" -e's
/[^_a-zA-Z0-9
+-]\
+/-/g
' -e's
/-$
//').patch"
18 printf "Creating %s\n" "${filename}"
19 git -C "${TMP_REPODIR}" show "$cid" > "${PATCHESDIR}/$filename"
20 git add "${PATCHESDIR}/$filename"
24 rm -rf "${TMP_REPODIR}"