summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2013-05-07 10:57:59 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2013-05-07 10:57:59 +0000
commit9c1b659facd5e8da7af451d53061237ed42c6baa (patch)
tree1864fa17db1242668e9d546bfc2c2092a6f46463
parent61bab4177582435ca16962015182020da00bf596 (diff)
Generate a simple apt repository
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@622 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xgen-repo22
1 files changed, 22 insertions, 0 deletions
diff --git a/gen-repo b/gen-repo
new file mode 100755
index 0000000..a98df29
--- /dev/null
+++ b/gen-repo
@@ -0,0 +1,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