packages/net/haproxy/get-latest-patches.sh
Christian Lachner 14fcfe6ae9 haproxy: Update HAProxy to v1.8.13 & Lua library to v5.3.5
- Update Lua to v5.3.5
- Add myself as co-maintainer
- Update haproxy download URL and hash
- Changed version-output to always print $(PKG_VERSION)-$(PKG_RELEASE)
- Removed all obsolete patches

Signed-off-by: Christian Lachner <gladiac@gmail.com>
2018-08-04 11:22:43 +02:00

27 lines
741 B
Bash
Executable file

#!/bin/bash
CLONEURL=http://git.haproxy.org/git/haproxy-1.8.git
BASE_TAG=v1.8.13
TMP_REPODIR=tmprepo
PATCHESDIR=patches
if test -d "${TMP_REPODIR}"; then rm -rf "${TMP_REPODIR}"; fi
git clone "${CLONEURL}" "${TMP_REPODIR}"
printf "Cleaning patches\n"
find ${PATCHESDIR} -type f -name "*.patch" -exec rm -f "{}" \;
i=0
for cid in $(git -C "${TMP_REPODIR}" rev-list ${BASE_TAG}..HEAD | tac); do
filename="$(printf "%04d" $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"
printf "Creating ${filename}\n"
git -C "${TMP_REPODIR}" show $cid > "${PATCHESDIR}/$filename"
git add "${PATCHESDIR}/$filename"
let i++
done
rm -rf "${TMP_REPODIR}"
printf "finished\n"