mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
app-crypt/freepg: Split the script to make dist archives
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
25
app-crypt/freepg/files/make-dist-archive.sh
Normal file
25
app-crypt/freepg/files/make-dist-archive.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ${#} -ne 1 ]; then
|
||||
echo "Usage: ${0} <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -e -x
|
||||
|
||||
PV=${1}
|
||||
TAG=gnupg-${PV}-freepg
|
||||
|
||||
git clone --depth 1 --branch "${TAG}" https://gitlab.com/freepg/gnupg
|
||||
cd gnupg
|
||||
rm -r -f .git
|
||||
sed -i -e '/beta=yes/d' -e 's:-unknown:-freepg:' autogen.sh
|
||||
# bashisms
|
||||
bash autogen.sh
|
||||
./configure --enable-maintainer-mode
|
||||
# parallel can fail
|
||||
make dist
|
||||
gpg --detach-sign "${TAG}".tar.bz2
|
||||
kup putraw "${TAG}".tar.bz2 "${TAG}".tar.bz2.sig /pub/dev/mgorny@gentoo.org/freepg/
|
||||
cd ..
|
||||
rm -r -f gnupg
|
||||
Reference in New Issue
Block a user