#!/bin/bash cd $(dirname $(realpath $0)) mkdir -p dists/stable/main/binary-all mkdir -p dists/stable/main/binary-amd64 SIGNKEY=$1 [[ -z "$SIGNKEY" ]] && SIGNKEY=$SIGN_KEY [[ -z "$SIGNKEY" ]] && echo "No SIGNKEY (or SIGN_KEY in apt.conf.sh)" && exit 1 # Packages Dateien für die Architekturen erstellen dpkg-scanpackages --multiversion pool/main/. /dev/null > dists/stable/main/binary-all/Packages gzip -k -f dists/stable/main/binary-all/Packages # Release Datei erstellen apt-ftparchive release \ -c=conf/distributions.stable \ dists/stable > dists/stable/Release # Release signieren gpg --export --armor $SIGNKEY > repos.gpg.key rm -f dists/stable/Release.gpg dists/stable/InRelease gpg --default-key $SIGNKEY -abs -o dists/stable/Release.gpg dists/stable/Release gpg --default-key $SIGNKEY --clearsign -o dists/stable/InRelease dists/stable/Release