From 9c1b659facd5e8da7af451d53061237ed42c6baa Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 7 May 2013 10:57:59 +0000 Subject: Generate a simple apt repository git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@622 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- gen-repo | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 gen-repo (limited to 'gen-repo') 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 -- cgit v1.2.3