logo

widrop

[mirror] WiDrop distribution, now defunct
commit: 4ae8ff9b41cff722768d9d90551c71ff8b135109
parent 437b5bd527a61a727a9c2fb1ac2bd72ec1a2b512
Author: Mathieu Goessens <geb@breizh-entropy.org>
Date:   Mon, 24 Dec 2012 07:03:40 +0000

Add md5sum to Release file

Diffstat:

Msrc/pkg/build.sh34+++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/src/pkg/build.sh b/src/pkg/build.sh @@ -1,17 +1,49 @@ #!/bin/sh +echo [Widrop] -------------------------- +echo [Widrop] building Packages +echo [Widrop] -------------------------- + for x in $(cat list); do dpkg -b $x dist/$x.deb; done; +echo [Widrop] ------------------------------- +echo [Widrop] Generating Packages file +echo [Widrop] ------------------------------- + cd dist; -dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz; +dpkg-scanpackages . /dev/null > Packages; +gzip -c Packages > Packages.gz cd .. +echo [Widrop] ------------------------------- +echo [Widrop] Generating Release file +echo [Widrop] ------------------------------- + cat > dist/Release <<EOF Archive: stable Component: main, contrib, non-free Origin: Widrop Label: Widrop Architecture: all +MD5Sum: EOF + +echo [Widrop] ------------------------------------- +echo [Widrop] Adding md5sums to Release file +echo [Widrop] ------------------------------------- + +cd dist; +for x in Packages Release; do + echo \ + $(md5sum $x | awk '{ print $1}') \ + $(du -sb $x) \ + >> Release +done; +cd .. + +echo [Widrop] ------------------------------- +echo [Widrop] Done ! +echo [Widrop] ------------------------------- +