source: dassldapsync/mkdist.sh@ 1221

Last change on this file since 1221 was 1218, checked in by joergs, on Nov 7, 2016 at 8:21:39 PM

initial (from trunk/people/slederer/dassldapsync)

File size: 990 bytes
Line 
1#!/bin/sh
2name=dassldapsync
3version=$(awk '/^Version:/ { print $2 }' $name.spec)
4debversion=$(head -1 debian/changelog | sed 's/.*[(]\(.*\)[)].*/\1/')
5debtar=${name}_$version.tar.gz
6rm -f build-stamp
7rm -rf debian/$name debian/$name.debhelper.log debian/$name.substvars
8
9(cd ..;tar czf /tmp/$debtar --exclude .svn $name)
10filesize=$(ls -l /tmp/$debtar | awk '{ print $5 }')
11md5sum=$(md5sum /tmp/$debtar | awk '{ print $1}')
12sha1sum=$(sha1sum /tmp/$debtar | awk '{ print $1}')
13sha256sum=$(sha256sum /tmp/$debtar | awk '{ print $1}')
14cat >/tmp/${name}.dsc << EOF
15Format: 1.0
16Source: $name
17Binary: $name
18Architecture: all
19Version: $debversion
20Maintainer: Sebastian Lederer <slederer@dass-it.de>
21Standards-Version: 3.6.1
22Build-Depends: debhelper (>= 4.0.0), python (>= 2.6)
23Package-List:
24 $name deb contrib/admin optional
25Checksums-Sha1:
26 $sha1sum $filesize $debtar
27Checksums-Sha256:
28 $sha256sum $filesize $debtar
29Files:
30 $md5sum $filesize $debtar
31EOF
32cp $name.spec /tmp
33ls -l /tmp/$name*
Note: See TracBrowser for help on using the repository browser.