[lua-torch-trepl] 01/04: rules: generate the links file from rules, instead of using a template
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Sat Aug 26 16:14:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository lua-torch-trepl.
commit 0334f350c1cda4ff90bcb8f6b5252b6be79746b4
Author: Mo Zhou <cdluminate at gmail.com>
Date: Sat Aug 26 15:49:06 2017 +0000
rules: generate the links file from rules, instead of using a template
---
debian/clean | 1 +
debian/lua-torch-trepl.links | 6 ------
debian/rules | 12 ++++++++++--
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/debian/clean b/debian/clean
index ffe1877..8d06fe1 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1,3 +1,4 @@
debian/lua-torch-trepl-dev.install
debian/lua-torch-trepl.install
debian/lua_versions
+debian/lua-torch-trepl.links
diff --git a/debian/lua-torch-trepl.links b/debian/lua-torch-trepl.links
deleted file mode 100644
index 8cc2c93..0000000
--- a/debian/lua-torch-trepl.links
+++ /dev/null
@@ -1,6 +0,0 @@
-# See top part of init.lua,
-# readline.so is required to enable tab-completion functionality
-# of trepl, however the object file readline.* is compiled into
-# treplutils.so, so we link treplutils.so to readline.so, or
-# the tab-completion will be broken.
-usr/lib/#DEB_HOST_MULTIARCH#/lua/5.1/treplutils.so usr/lib/#DEB_HOST_MULTIARCH#/lua/5.1/readline.so
diff --git a/debian/rules b/debian/rules
index 6c4ff52..8decaa8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,17 @@ DEB_HOST_MULTIARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@ --buildsystem=lua --with lua
-override_dh_auto_configure:
+generate_install_links:
+# See top part of init.lua,
+# readline.so is required to enable tab-completion functionality
+# of trepl, however the object file readline.* is compiled into
+# treplutils.so, so we link treplutils.so to readline.so, or
+# the tab-completion will be broken.
+ echo "usr/lib/$(DEB_HOST_MULTIARCH)/lua/5.1/treplutils.so usr/lib/$(DEB_HOST_MULTIARCH)/lua/5.1/readline.so" \
+ > debian/lua-torch-trepl.links
+
+override_dh_auto_configure: generate_install_links
ln -s . trepl
- sed -i -e "s/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/g" debian/lua-torch-trepl.links
dh_auto_configure
override_dh_auto_clean:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-trepl.git
More information about the debian-science-commits
mailing list