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