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
2
3










4
5
6
7
8
9
10
11
12
13
#! /usr/bin/env bash

version="$1"










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
)

if [ ! -f '/etc/slackware-version' ]; then



>
>
>
>
>
>
>
>
>
>


<







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

16
17
18
19
20
21
22
#! /usr/bin/env bash

version="$1"
url="$2"

if [ -z "${version}" ]; then
	echo 'usage: make-slackware-package <version> [<url>]' >&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)"

make_args=(
	prefix=/usr
	sbindir=/sbin
	mandir=/usr/man
)

if [ ! -f '/etc/slackware-version' ]; then
31
32
33
34
35
36
37


38





39
40
41
42
43
44
45

	set -x

	cd "${workdir}" || exit 1

	installdir="$(pwd)/installed"



	wget -O appfs.tar.gz "${url}"





	tar -xf appfs.tar.gz || exit 1

	cd "appfs-${version}" || exit 1

	make "${make_args[@]}" || exit 1
	make "${make_args[@]}" DESTDIR="${installdir}" install || exit 1








>
>

>
>
>
>
>







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

	set -x

	cd "${workdir}" || exit 1

	installdir="$(pwd)/installed"

	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
	make "${make_args[@]}" DESTDIR="${installdir}" install || exit 1

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

























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /usr/bin/env bash

version="$1"

if [ -z "${version}" ]; then
	echo 'usage: post-release-upload <version>' >&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"