Check-in [fbe84a64fb]
Overview
Comment:Added script to do post-release upload to Fossil
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fbe84a64fbc8680dd6a9999b24791ca358896c93
User & Date: rkeene on 2020-05-12 18:10:43
Other Links: manifest | tags
Context
2020-05-15
01:25
Use an environment variable to control debug logging at runtime check-in: 2374e0de64 user: rkeene tags: trunk
2020-05-12
18:10
Added script to do post-release upload to Fossil check-in: fbe84a64fb user: rkeene tags: trunk
17:50
Use AppFS packaged Tardy to create Slackware package check-in: 00e6414a7d user: rkeene tags: trunk
Changes

Modified build/make-slackware-package from [44af0f063b] to [0c40224677].

     1      1   #! /usr/bin/env bash
     2      2   
     3      3   version="$1"
            4  +url="$2"
            5  +
            6  +if [ -z "${version}" ]; then
            7  +	echo 'usage: make-slackware-package <version> [<url>]' >&2
            8  +	exit 1
            9  +fi
           10  +if [ -z "${url}" ]; then
           11  +	url="http://rkeene.org/devel/appfs/appfs-${version}.tar.gz"
           12  +fi
           13  +
     4     14   version_release='1'
     5     15   platform="$(uname -m)"
     6         -url="http://rkeene.org/devel/appfs/appfs-${version}.tar.gz"
     7     16   make_args=(
     8     17   	prefix=/usr
     9     18   	sbindir=/sbin
    10     19   	mandir=/usr/man
    11     20   )
    12     21   
    13     22   if [ ! -f '/etc/slackware-version' ]; then
................................................................................
    31     40   
    32     41   	set -x
    33     42   
    34     43   	cd "${workdir}" || exit 1
    35     44   
    36     45   	installdir="$(pwd)/installed"
    37     46   
    38         -	wget -O appfs.tar.gz "${url}"
           47  +	case "${url}" in
           48  +		*tp://*)
           49  +			wget -O appfs.tar.gz "${url}"
           50  +			;;
           51  +		*)
           52  +			cp "${url}" appfs.tar.gz
           53  +			;;
           54  +	esac
    39     55   	tar -xf appfs.tar.gz || exit 1
    40     56   
    41     57   	cd "appfs-${version}" || exit 1
    42     58   
    43     59   	make "${make_args[@]}" || exit 1
    44     60   	make "${make_args[@]}" DESTDIR="${installdir}" install || exit 1
    45     61   

Added build/post-release-upload version [8d0a5753e2].

            1  +#! /usr/bin/env bash
            2  +
            3  +version="$1"
            4  +
            5  +if [ -z "${version}" ]; then
            6  +	echo 'usage: post-release-upload <version>' >&2
            7  +	exit 1
            8  +fi
            9  +
           10  +srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd .. && pwd)"
           11  +tarball="${srcdir}/../archive/appfs/appfs-${version}.tar.gz"
           12  +
           13  +set -ex -o pipefail
           14  +cd "${srcdir}/build" 
           15  +
           16  +# Build the Slackware package
           17  +./make-slackware-package "${version}" "${tarball}"
           18  +platform="$(uname -m)"
           19  +slackware_package="appfs-${version}-${platform}-1.txz"
           20  +
           21  +# Build the Static package for Linux/x86_64
           22  +./make-static-package "${tarball}" 'x86_64-generic-linux-musl'
           23  +static_package="appfs-${version}-linux-x86_64.tar.gz"
           24  +
           25  +# Add the artifacts to Fossil
           26  +fossil uv add "${slackware_package}" --as "releases/${version}/${slackware_package}"
           27  +fossil uv add "${static_package}" --as "releases/${version}/${static_package}"
           28  +fossil uv add "${tarball}" --as "releases/${version}/appfs-${version}.tar.gz"