PavolVican | 384786e | 2017-07-12 15:31:20 +0200 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | LOCAL_LC_TIME=$LC_TIME |
| 4 | export LC_TIME="en_US.UTF-8" |
| 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 |
| 9 | echo '9' >debian/compat |
Michal Vasko | 4cb2d72 | 2020-04-23 13:49:16 +0200 | [diff] [blame] | 10 | echo '3.0 (quilt)' >debian/source/format |
PavolVican | 384786e | 2017-07-12 15:31:20 +0200 | [diff] [blame] | 11 | cp "@PROJECT_SOURCE_DIR@/LICENSE" debian/copyright |
Michal Vasko | 4cb2d72 | 2020-04-23 13:49:16 +0200 | [diff] [blame] | 12 | cp "@PROJECT_SOURCE_DIR@/packages/debian.@PACKAGE@.install" debian/@PACKAGE@.install |
| 13 | cp "@PROJECT_SOURCE_DIR@/packages/debian.@PACKAGE@-dev.install" debian/@PACKAGE@-dev.install |
| 14 | cp "@PROJECT_SOURCE_DIR@/packages/debian.@PYTHON_PACKAGE@.install" debian/@PYTHON_PACKAGE@.install |
| 15 | echo -e "@PACKAGE@ (@LIBNETCONF2_VERSION@) stable; urgency=low\n" >debian/changelog |
PavolVican | 384786e | 2017-07-12 15:31:20 +0200 | [diff] [blame] | 16 | git log -10 --pretty=format:' * %s (%aN)%n' 2>/dev/null >>debian/changelog || echo -e " * unknown changes \n" >>debian/changelog |
| 17 | git log -1 --pretty=format:'%n -- %aN <%aE> %aD%n' >>debian/changelog 2>/dev/null || echo " -- ${USER} <${USER}@`hostname`> `date -R`" >>debian/changelog |
| 18 | debuild --no-lintian -i -b -us -uc |
| 19 | mv ../*.deb debs |
| 20 | export LC_TIME=$LOCAL_LC_TIME |