blob: 5b2375f99ac788b2d8e81800bfff3a35c6ea5eb3 [file] [log] [blame]
PavolVican384786e2017-07-12 15:31:20 +02001#!/usr/bin/env bash
2
3LOCAL_LC_TIME=$LC_TIME
4export LC_TIME="en_US.UTF-8"
5mkdir -p debian/source
6mkdir -p debs
7cp build-packages/debian.rules debian/rules
8cp build-packages/debian.control debian/control
9echo '9' >debian/compat
10echo '3.0 (quilt)' >debian/source/format
11cp "@PROJECT_SOURCE_DIR@/LICENSE" debian/copyright
12cp "@PROJECT_SOURCE_DIR@/packages/debian.libnetconf2.install" debian/@PACKAGE_NAME@.install
13cp "@PROJECT_SOURCE_DIR@/packages/debian.libnetconf2-dev.install" debian/@PACKAGE_NAME@-dev.install
14echo -e "@PACKAGE_NAME@ (@LIBNETCONF2_VERSION@) stable; urgency=low\n" >debian/changelog
15git log -10 --pretty=format:' * %s (%aN)%n' 2>/dev/null >>debian/changelog || echo -e " * unknown changes \n" >>debian/changelog
16git log -1 --pretty=format:'%n -- %aN <%aE> %aD%n' >>debian/changelog 2>/dev/null || echo " -- ${USER} <${USER}@`hostname`> `date -R`" >>debian/changelog
17debuild --no-lintian -i -b -us -uc
18mv ../*.deb debs
19export LC_TIME=$LOCAL_LC_TIME