Diff

Differences From Artifact [f3333b1483]:

To Artifact [44af0f063b]:


23
24
25
26
27
28
29
30

31
32
33
34
35
36
37
23
24
25
26
27
28
29

30
31
32
33
34
35
36
37







-
+







fi

workdir="${TMPDIR:-/tmp}/appfs-slackware-package-${version}-$$${RANDOM}${RANDOM}${RANDOM}"
package="appfs-${version}-${platform}-${version_release}.txz"
mkdir "${workdir}" || exit 1

(
	PATH="${PATH}:/sbin"
	PATH="${PATH}:/sbin:/opt/appfs/rkeene.org/tardy/platform/latest/bin"

	set -x

	cd "${workdir}" || exit 1

	installdir="$(pwd)/installed"

59
60
61
62
63
64
65

66
67
68
69
70
71
72
73
74
75
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76







+










appfs:
appfs:
_EOF_

	makepkg -c n -l y "../${package}" || exit 1

	if [ "$(id -u)" != '0' ]; then
		set -o pipefail
		xz -dc "../${package}" | tardy -User 0 -Group 0 | xz -9c > "../${package}.new" || exit 1
		mv "../${package}.new" "../${package}" || exit 1
	fi
) || exit 1

mv "${workdir}/${package}" .

rm -rf "${workdir}"

exit 0