blob: 703acddf1703422987a210830110860444ff5a54 [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
9echo '9' >debian/compat
10echo '3.0 (quilt)' >debian/source/format
11cp "@PROJECT_SOURCE_DIR@/LICENSE" debian/copyright
PavolVican6fd3e272017-06-20 17:46:55 +020012cp "@PROJECT_SOURCE_DIR@/packages/debian.libyang.install" debian/@PACKAGE_NAME@.install
13cp "@PROJECT_SOURCE_DIR@/packages/debian.libyang-dev.install" debian/@PACKAGE_NAME@-dev.install
PavolVican8738eee2018-02-27 01:47:02 +010014cp "@PROJECT_SOURCE_DIR@/packages/debian.libyang-cpp.install" debian/libyang-cpp@PACKAGE_PART_NAME@.install
15cp "@PROJECT_SOURCE_DIR@/packages/debian.libyang-cpp-dev.install" debian/libyang-cpp@PACKAGE_PART_NAME@-dev.install
16cp "@PROJECT_SOURCE_DIR@/packages/debian.python3-yang.install" debian/python3-yang@PACKAGE_PART_NAME@.install
PavolVican5d377522017-06-07 15:08:14 +020017echo -e "@PACKAGE_NAME@ (@LIBYANG_VERSION@) stable; urgency=low\n" >debian/changelog
18git log -10 --pretty=format:' * %s (%aN)%n' 2>/dev/null >>debian/changelog || echo -e " * unknown changes \n" >>debian/changelog
19git log -1 --pretty=format:'%n -- %aN <%aE> %aD%n' >>debian/changelog 2>/dev/null || echo " -- ${USER} <${USER}@`hostname`> `date -R`" >>debian/changelog
20debuild --no-lintian -i -b -us -uc
21mv ../*.deb debs
PavolVican6fd3e272017-06-20 17:46:55 +020022export LC_TIME=$LOCAL_LC_TIME