Commit | Line | Data |
---|---|---|
1 | #!/bin/bash | |
2 | ||
3 | arch=`dpkg-architecture -qDEB_HOST_ARCH` | |
4 | version=`grep VERSION Makefile | gawk -F= '{ print $2 }'` | |
5 | package=`grep PACKAGE Makefile | gawk -F= '{ print $2 }'` | |
6 | maintainer='gandalf <gandalf@arachne.cz>' | |
7 | ||
8 | patch -Nl <debian/prometheus.patch | |
9 | ||
10 | sed -e "s/__ARCHITECTURE__/$arch/" \ | |
11 | -e "s/__VERSION__/$version/" \ | |
12 | -e "s/__PACKAGE__/$package/" \ | |
13 | -e "s/__MAINTAINER__/$maintainer/" \ | |
14 | debian/prometheus.control > debian/control | |
15 | ||
16 | dpkg-buildpackage | |
17 |