feat: multiple archs - TEST

This commit is contained in:
Filip Rojek 2023-04-29 11:10:21 +02:00
parent bcd155ba88
commit 5af9d45d43

View File

@ -1,10 +1,16 @@
#!/bin/sh #!/bin/sh
DIR="$(cd "$(dirname "$0")" && pwd)" DIR="$(cd "$(dirname "$0")" && pwd)"
LS="$(which ls)"
ARCHS="$($LS -l apt-repo/dists/stable/main/ | awk '{print $9}' | awk NF | awk -F - '{print $2}')"
# generate Packages file # generate Packages file
dpkg-scanpackages --multiversion --arch amd64 "./apt-repo/pool/" > "./apt-repo/dists/stable/main/binary-amd64/Packages" for ARCH in $ARCHS; do
# compress Packages file echo $ARCH
cat "./apt-repo/dists/stable/main/binary-amd64/Packages" | gzip -9 > "./apt-repo/dists/stable/main/binary-amd64/Packages.gz" dpkg-scanpackages --multiversion --arch $ARCH "./apt-repo/pool/" > "./apt-repo/dists/stable/main/binary-$ARCH/Packages"
# compress Packages file
cat "./apt-repo/dists/stable/main/binary-$ARCH/Packages" | gzip -9 > "./apt-repo/dists/stable/main/binary-$ARCH/Packages.gz"
done
# generate Release file # generate Release file
cd "./apt-repo/dists/stable/" cd "./apt-repo/dists/stable/"
$DIR/generate-release.sh > "Release" $DIR/generate-release.sh > "Release"