~rattab/autoconf-upstream

b1bdc7dfcda0453e48a1f7ae6a57446315d08bac — RĂ©mi Attab 3 years ago 6fbcfd0
Write utility to find original source for patches
3 files changed, 15 insertions(+), 9 deletions(-)

M list.log
A openbsd-find.sh
M pull.sh
M list.log => list.log +1 -0
@@ 36,6 36,7 @@
./openbsd/patch-configure
./openbsd/patch-doc_autoconf_texi
./openbsd/patch-doc_Makefile_in
./openbsd/patch-lib_autoconf_general_m4
./openbsd/patch-lib_autoconf_Makefile_in
./openbsd/patch-lib_autotest_Makefile_in
./openbsd/patch-lib_m4sugar_m4sugar_m4

A openbsd-find.sh => openbsd-find.sh +10 -0
@@ 0,0 1,10 @@
#! /usr/bin/env bash
set -o errexit -o nounset -o pipefail

for patch in $(cd openbsd; ls patch-*); do
    version=$(
        find ./openbsd/git/devel/autoconf/ -name "$patch" | \
            sort | head -n1 | cut -f6 -d/
    )
    echo "${version} <- ${patch}"
done

M pull.sh => pull.sh +4 -9
@@ 119,17 119,12 @@ function yocto() {
# - http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/autoconf/2.69/
#
# Notes: Uses CVS as their canonical version control but had trouble
# accessing it. Used one of their uploaded mirrors instead.
# accessing it. Their git mirror seems up to date and that's easier to
# use.
function openbsd() {
    local bsd_version="6.7"
    local mirror="https://cloudflare.cdn.openbsd.org/pub/OpenBSD"

    mkdir openbsd

    wget -P openbsd/ "${mirror}/${bsd_version}/ports.tar.gz"
    tar -C openbsd -xzf openbsd/ports.tar.gz

    cp openbsd/ports/devel/autoconf/2.69/patches/patch-* openbsd/
    git clone https://github.com/openbsd/ports.git --depth=1 openbsd/git
    cp openbsd/git/devel/autoconf/2.69/patches/patch-* openbsd/
}

# FreeBSD