Index: build/make-slackware-package ================================================================== --- build/make-slackware-package +++ build/make-slackware-package @@ -1,11 +1,20 @@ #! /usr/bin/env bash version="$1" +url="$2" + +if [ -z "${version}" ]; then + echo 'usage: make-slackware-package []' >&2 + exit 1 +fi +if [ -z "${url}" ]; then + url="http://rkeene.org/devel/appfs/appfs-${version}.tar.gz" +fi + version_release='1' platform="$(uname -m)" -url="http://rkeene.org/devel/appfs/appfs-${version}.tar.gz" make_args=( prefix=/usr sbindir=/sbin mandir=/usr/man ) @@ -33,11 +42,18 @@ cd "${workdir}" || exit 1 installdir="$(pwd)/installed" - wget -O appfs.tar.gz "${url}" + case "${url}" in + *tp://*) + wget -O appfs.tar.gz "${url}" + ;; + *) + cp "${url}" appfs.tar.gz + ;; + esac tar -xf appfs.tar.gz || exit 1 cd "appfs-${version}" || exit 1 make "${make_args[@]}" || exit 1 ADDED build/post-release-upload Index: build/post-release-upload ================================================================== --- build/post-release-upload +++ build/post-release-upload @@ -0,0 +1,28 @@ +#! /usr/bin/env bash + +version="$1" + +if [ -z "${version}" ]; then + echo 'usage: post-release-upload ' >&2 + exit 1 +fi + +srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd .. && pwd)" +tarball="${srcdir}/../archive/appfs/appfs-${version}.tar.gz" + +set -ex -o pipefail +cd "${srcdir}/build" + +# Build the Slackware package +./make-slackware-package "${version}" "${tarball}" +platform="$(uname -m)" +slackware_package="appfs-${version}-${platform}-1.txz" + +# Build the Static package for Linux/x86_64 +./make-static-package "${tarball}" 'x86_64-generic-linux-musl' +static_package="appfs-${version}-linux-x86_64.tar.gz" + +# Add the artifacts to Fossil +fossil uv add "${slackware_package}" --as "releases/${version}/${slackware_package}" +fossil uv add "${static_package}" --as "releases/${version}/${static_package}" +fossil uv add "${tarball}" --as "releases/${version}/appfs-${version}.tar.gz"