2023-04-27 13:52:23 +02:00
|
|
|
#!/bin/sh
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
REPODIR="$1"
|
2023-05-08 11:08:25 +02:00
|
|
|
DISTRO="$3"
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
. $REPODIR/apt-repo/config
|
|
|
|
|
2023-05-08 11:08:25 +02:00
|
|
|
if [ ! $DISTRO ]; then
|
|
|
|
DISTRO="stable"
|
|
|
|
fi
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
|
|
|
|
if [ ! $DEFAULT_GPG ]; then
|
|
|
|
echo "error: no gpg key provided in config file"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
KEY=$DEFAULT_GPG
|
2023-04-27 15:20:02 +02:00
|
|
|
echo "debrepo: signing using $KEY"
|
|
|
|
|
2023-05-08 11:08:25 +02:00
|
|
|
cat $REPODIR/apt-repo/dists/$DISTRO/Release | gpg --default-key $KEY -abs > $REPODIR/apt-repo/dists/$DISTRO/Release.gpg
|
|
|
|
cat $REPODIR/apt-repo/dists/$DISTRO/Release | gpg --default-key $KEY -abs --clearsign > $REPODIR/apt-repo/dists/$DISTRO/InRelease
|
2023-04-27 13:52:23 +02:00
|
|
|
|