diff options
| author | 2014-08-06 19:15:55 -0300 | |
|---|---|---|
| committer | 2014-08-06 19:15:55 -0300 | |
| commit | 10a5e55c62fa65cbbe7c493f62bde12af91d4f93 (patch) | |
| tree | 12511413089e38f3a8e6c78058b4e535e73e12ee /debian/rules | |
| parent | 98647f90eab93c4994ef81c2091052b132627687 (diff) | |
Add nikola.sh (nikola runner to create sh_completion files)
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules index a895996..616e792 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,7 @@ 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) -ROOT_PATH=$(CURDIR) +export ROOT_PATH=$(CURDIR) %: dh $@ --with python2,bash-completion --buildsystem=pybuild @@ -18,13 +18,10 @@ override_dh_clean: rm -f .doit.db rm -f _nikola_zsh rm -f _nikola_bash - rm -f debian/nikola.sh rm -rf debian/dpackaging_site rm -f debian/source/include-binaries override_dh_bash-completion: - echo -e '#!/bin/bash\nexport PYTHONPATH=$(ROOT_PATH)\n$(ROOT_PATH)/debian/nikola/usr/bin/nikola $$@' > debian/nikola.sh - chmod +x ./debian/nikola.sh ./debian/nikola.sh init -q debian/dpackaging_site cd debian/dpackaging_site/ && ../nikola.sh tabcompletion --shell bash --hardcode-tasks > ../../_nikola_bash cd debian/dpackaging_site/ && ../nikola.sh tabcompletion --shell zsh --hardcode-tasks > ../../_nikola_zsh |
