ab783510 |
1 | #!/bin/bash |
2 | |
1dd7f69f |
3 | arch=`dpkg-architecture -qDEB_HOST_ARCH` |
03a8ebc8 |
4 | version=`grep VERSION= Makefile | cut -d = -f 2` |
5 | package=`grep PACKAGE= Makefile | cut -d = -f 2` |
6 | maintainer="gandalf <gandalf@arachne.cz>" |
7 | control=debian/prometheus.control |
ab783510 |
8 | |
ae776b10 |
9 | #patch -Nl <debian/prometheus.patch |
ab783510 |
10 | |
1dd7f69f |
11 | sed -e "s/__ARCHITECTURE__/$arch/" \ |
12 | -e "s/__VERSION__/$version/" \ |
13 | -e "s/__PACKAGE__/$package/" \ |
14 | -e "s/__MAINTAINER__/$maintainer/" \ |
03a8ebc8 |
15 | $control > debian/control |
ab783510 |
16 | |
1dd7f69f |
17 | |