[med-svn] [metabit] 03/03: Leave R scripts at their place and only set symlinks to usual R location
Andreas Tille
tille at debian.org
Tue Jul 26 13:35:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository metabit.
commit 643ccf2c78eb3ecd9a5fdf993f1e36f692b6a4d0
Author: Andreas Tille <tille at debian.org>
Date: Tue Jul 26 15:34:37 2016 +0200
Leave R scripts at their place and only set symlinks to usual R location
---
debian/rules | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index 35b1de8..d7538c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@
export LC_ALL=C.UTF-8
DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+RDIR := debian/$(DEBPKGNAME)/usr/lib/R/site-library/metabit
%:
dh $@ --with python2
@@ -12,7 +13,9 @@ override_dh_auto_build:
dh_auto_build
markdown_py -f README.html README.md
-override_dh_install:
- dh_install
- mv debian/$(DEBPKGNAME)/usr/share/metabit/nodes/tools/statax_Rmodule/*.R debian/$(DEBPKGNAME)/usr/lib/R/site-library/metabit
- rmdir debian/$(DEBPKGNAME)/usr/share/metabit/nodes/tools/statax_Rmodule
+override_dh_link:
+ dh_link
+ mkdir -p $(RDIR)
+ for r in debian/$(DEBPKGNAME)/usr/share/metabit/nodes/tools/statax_Rmodule/*.R ; do \
+ ln -s `echo $$r | sed 's:.*/usr:../../../..:'` $(RDIR) ; \
+ done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/metabit.git
More information about the debian-med-commit
mailing list