2023-04-22 14:06:00 +02:00
|
|
|
#!/bin/sh
|
2023-04-23 16:07:51 +02:00
|
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
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
|
|
|
LS="$(which ls)" # this prevents bugs when aliasing ls to tools like exa
|
|
|
|
REPODIR="$1"
|
|
|
|
ARCHS="$($LS -l $REPODIR/apt-repo/dists/stable/main/ | awk '{print $9}' | awk NF | awk -F - '{print $2}')"
|
2023-04-22 14:06:00 +02:00
|
|
|
|
|
|
|
# generate Packages file
|
2023-04-29 11:10:21 +02:00
|
|
|
for ARCH in $ARCHS; do
|
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
|
|
|
dpkg-scanpackages --multiversion --arch $ARCH "$REPODIR/apt-repo/pool/" > "$REPODIR/apt-repo/dists/stable/main/binary-$ARCH/Packages"
|
2023-04-29 11:10:21 +02:00
|
|
|
# compress Packages file
|
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
|
|
|
cat "$REPODIR/apt-repo/dists/stable/main/binary-$ARCH/Packages" | gzip -9 > "$REPODIR/apt-repo/dists/stable/main/binary-$ARCH/Packages.gz"
|
2023-04-29 11:10:21 +02:00
|
|
|
done
|
|
|
|
|
2023-04-22 14:06:00 +02:00
|
|
|
# generate Release file
|
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
|
|
|
cd "$REPODIR/apt-repo/dists/stable/"
|
2023-04-23 16:07:51 +02:00
|
|
|
$DIR/generate-release.sh > "Release"
|
2023-04-22 14:06:00 +02:00
|
|
|
|