blob: a19c9044ec4949a7d142d2ee30b19306e3b15cdf [file] [log] [blame]
PavolVican5d377522017-06-07 15:08:14 +02001#!/usr/bin/env bash
2
PavolVican6fd3e272017-06-20 17:46:55 +02003LOCAL_LC_TIME=$LC_TIME
4export LC_TIME="en_US.UTF-8"
PavolVican5d377522017-06-07 15:08:14 +02005mkdir -p debian/source
6mkdir -p debs
7cp build-packages/debian.rules debian/rules
8cp build-packages/debian.control debian/control
Igor Ryzhova8b0fc52020-08-31 20:23:00 +03009cp build-packages/debian.copyright debian/copyright
PavolVican5d377522017-06-07 15:08:14 +020010echo '9' >debian/compat
Michal Vaskoef4eb9f2018-10-23 09:50:00 +020011echo '3.0 (quilt)' >debian/source/format
Igor Ryzhova8b0fc52020-08-31 20:23:00 +030012cp "@PROJECT_BINARY_DIR@/build-packages/debian.@PACKAGE@@LIBYANG_MAJOR_SOVERSION@.install" debian/@PACKAGE@@LIBYANG_MAJOR_SOVERSION@.install
13cp "@PROJECT_BINARY_DIR@/build-packages/debian.@PACKAGE@-dev.install" debian/@PACKAGE@-dev.install
14cp "@PROJECT_BINARY_DIR@/build-packages/debian.@CPP_PACKAGE@@LIBYANG_MAJOR_SOVERSION@.install" debian/@CPP_PACKAGE@@LIBYANG_MAJOR_SOVERSION@.install
15cp "@PROJECT_BINARY_DIR@/build-packages/debian.@CPP_PACKAGE@-dev.install" debian/@CPP_PACKAGE@-dev.install
Michal Vaskob725ee82019-12-20 15:20:51 +010016echo -e "@PACKAGE@ (@LIBYANG_VERSION@) stable; urgency=low\n" >debian/changelog
PavolVican5d377522017-06-07 15:08:14 +020017git log -10 --pretty=format:' * %s (%aN)%n' 2>/dev/null >>debian/changelog || echo -e " * unknown changes \n" >>debian/changelog
18git log -1 --pretty=format:'%n -- %aN <%aE> %aD%n' >>debian/changelog 2>/dev/null || echo " -- ${USER} <${USER}@`hostname`> `date -R`" >>debian/changelog
19debuild --no-lintian -i -b -us -uc
20mv ../*.deb debs
PavolVican6fd3e272017-06-20 17:46:55 +020021export LC_TIME=$LOCAL_LC_TIME