PavolVican | 5d37752 | 2017-06-07 15:08:14 +0200 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
PavolVican | 6fd3e27 | 2017-06-20 17:46:55 +0200 | [diff] [blame] | 3 | LOCAL_LC_TIME=$LC_TIME |
| 4 | export LC_TIME="en_US.UTF-8" |
PavolVican | 5d37752 | 2017-06-07 15:08:14 +0200 | [diff] [blame] | 5 | mkdir -p debian/source |
| 6 | mkdir -p debs |
| 7 | cp build-packages/debian.rules debian/rules |
| 8 | cp build-packages/debian.control debian/control |
Igor Ryzhov | a8b0fc5 | 2020-08-31 20:23:00 +0300 | [diff] [blame] | 9 | cp build-packages/debian.copyright debian/copyright |
PavolVican | 5d37752 | 2017-06-07 15:08:14 +0200 | [diff] [blame] | 10 | echo '9' >debian/compat |
Michal Vasko | ef4eb9f | 2018-10-23 09:50:00 +0200 | [diff] [blame] | 11 | echo '3.0 (quilt)' >debian/source/format |
Igor Ryzhov | a8b0fc5 | 2020-08-31 20:23:00 +0300 | [diff] [blame] | 12 | cp "@PROJECT_BINARY_DIR@/build-packages/debian.@PACKAGE@@LIBYANG_MAJOR_SOVERSION@.install" debian/@PACKAGE@@LIBYANG_MAJOR_SOVERSION@.install |
| 13 | cp "@PROJECT_BINARY_DIR@/build-packages/debian.@PACKAGE@-dev.install" debian/@PACKAGE@-dev.install |
| 14 | cp "@PROJECT_BINARY_DIR@/build-packages/debian.@CPP_PACKAGE@@LIBYANG_MAJOR_SOVERSION@.install" debian/@CPP_PACKAGE@@LIBYANG_MAJOR_SOVERSION@.install |
| 15 | cp "@PROJECT_BINARY_DIR@/build-packages/debian.@CPP_PACKAGE@-dev.install" debian/@CPP_PACKAGE@-dev.install |
Michal Vasko | b725ee8 | 2019-12-20 15:20:51 +0100 | [diff] [blame] | 16 | echo -e "@PACKAGE@ (@LIBYANG_VERSION@) stable; urgency=low\n" >debian/changelog |
PavolVican | 5d37752 | 2017-06-07 15:08:14 +0200 | [diff] [blame] | 17 | git log -10 --pretty=format:' * %s (%aN)%n' 2>/dev/null >>debian/changelog || echo -e " * unknown changes \n" >>debian/changelog |
| 18 | git log -1 --pretty=format:'%n -- %aN <%aE> %aD%n' >>debian/changelog 2>/dev/null || echo " -- ${USER} <${USER}@`hostname`> `date -R`" >>debian/changelog |
| 19 | debuild --no-lintian -i -b -us -uc |
| 20 | mv ../*.deb debs |
PavolVican | 6fd3e27 | 2017-06-20 17:46:55 +0200 | [diff] [blame] | 21 | export LC_TIME=$LOCAL_LC_TIME |