debrepo/scripts/addPackage.sh

13 lines
372 B
Bash
Raw Normal View History

2023-04-22 14:06:00 +02:00
#!/bin/sh
BASEF="hello-world_$VERSION""_amd64"
echo $BASEF
# copy deb file to repo folder structure
cp "./$BASEF.deb" "./apt-repo/pool/main/"
# generate Packages file
dpkg-scanpackages --multiversion --arch amd64 "./apt-repo/pool/" > "./apt-repo/dists/stable/main/binary-amd64/Packages"
# generate Release file
./generate-release.sh > "./apt-repo/dists/stable/Release"