1
0
mirror of https://github.com/ceph/ceph synced 2024-12-20 10:23:24 +00:00
ceph/make-apk.sh
John Coyle 86be590c6c make-apk.sh: alpine packaging helper
Signed-off-by: John Coyle <dx9err@gmail.com>
2016-12-20 20:25:48 -05:00

27 lines
411 B
Bash
Executable File

#!/bin/sh
#
# Make Alpine Packages
#
set -xe
#
# make a distribution
#
./make-dist
mv -f *.tar.bz2 ./alpine
#
# alpine packaging key stuff
#
rm -rf .abuild && mkdir -p .abuild
ABUILD_USERDIR=$(pwd)/.abuild abuild-keygen -n -a
source .abuild/abuild.conf
#
# package it
#
cd alpine
abuild checksum && JOBS=$(expr $(nproc) / 2) SRCDEST=$(pwd) REPODEST=$(pwd) PACKAGER_PRIVKEY=$PACKAGER_PRIVKEY abuild -r
cd ..