aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-02-03 19:34:22 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2021-02-03 19:34:22 -0500
commitb1f39206bdb5810e857902f8b880ee5bfce882b4 (patch)
treef02c3cdf5998f9972e4a403faead6bd079d748b4
parent494d89b8620f90acf90d6e166b0b7b9d6953db31 (diff)
downloadnikola-b1f39206bdb5810e857902f8b880ee5bfce882b4.tar.bz2
nikola-b1f39206bdb5810e857902f8b880ee5bfce882b4.tar.xz
nikola-b1f39206bdb5810e857902f8b880ee5bfce882b4.tar.zst
d/rules: Drop deprecated get-orig-source target and dpkg-parsechangelog calls.
-rwxr-xr-xdebian/rules23
1 files changed, 1 insertions, 22 deletions
diff --git a/debian/rules b/debian/rules
index fc3d932..c3aa3df 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,9 +4,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-UVERSION := $(shell dpkg-parsechangelog | sed -n -e's/^Version: \(.*\)-[^-]\+/\1/p' | cut -d ":" -f 2)
-PACKAGE_NAME := $(shell dpkg-parsechangelog | sed -n -e's/^Source: \(.*\)\+/\1/p')
-export PYBUILD_NAME=$(PACKAGE_NAME)
+export PYBUILD_NAME=nikola
export ROOT_PATH=$(CURDIR)
export LC_ALL=C.UTF-8
@@ -51,22 +49,3 @@ override_dh_installdocs:
rst2html docs/theming.rst debian/nikola/usr/share/doc/nikola/theming.html
rst2html docs/template-variables.rst debian/nikola/usr/share/doc/nikola/template-variables.html
dh_installdocs
-
-get-orig-source:
- @if [ ! -d "debian" ] ; then \
- echo 'Run this from the top directory of the Debian source' >&2; \
- exit 1; \
- fi
- rm -rf ../tmp/nikola_$(UVERSION)
- mkdir -p ../tmp/nikola_$(UVERSION)
- wget https://github.com/getnikola/nikola/archive/v$(UVERSION).tar.gz \
- -O ../tmp/nikola_$(UVERSION).tar.gz;
- tar xf ../tmp/nikola_$(UVERSION).tar.gz \
- -C ../tmp/nikola_$(UVERSION) \
- '--exclude=*min.*' \
- '--exclude=*bootstrap-theme.css' \
- '--exclude=*bootstrap.js' \
- '--exclude=*bootstrap.css' \
- '--exclude=*bootstrap-responsive.css' \
- '--exclude=*glyphicons-halflings*.png';
- tar -C ../tmp/nikola_$(UVERSION) nikola-$(UVERSION) -c --xz -f ../nikola_$(UVERSION).orig.tar.xz