summaryrefslogtreecommitdiff
path: root/gen-repo
blob: a98df291fa824de57a7f86bb8aa37142f8746e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh


rm -f Packages Sources Packages.gz Sources.gz Release Release.gpg

dpkg-scanpackages . > Packages
dpkg-scansources . > Sources

(
cat << EOF
Suite: .
Codename: .
Date: `date -R`
Architectures: all
Components: .
SHA256:
 $(sha256sum < Packages | cut -d' ' -f 1) $(stat --printf '%s' Packages) Packages
 $(sha256sum < Sources | cut -d' ' -f 1) $(stat --printf '%s' Sources) Sources
EOF
) | tee Release
gzip -9 Packages Sources
gpg --detach-sign -o Release.gpg Release