[eso-midas] 02/03: Remove empty directories from installation
Ole Streicher
olebole at moszumanska.debian.org
Wed Mar 18 12:29:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
olebole pushed a commit to branch debian
in repository eso-midas.
commit 0413e9fc387f50b4188721f1412d01ede8533710
Author: Ole Streicher <debian at liska.ath.cx>
Date: Wed Mar 18 09:23:29 2015 +0100
Remove empty directories from installation
---
debian/links | 1 -
debian/rules | 8 +++++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/debian/links b/debian/links
index 2ae3b59..b57000c 100755
--- a/debian/links
+++ b/debian/links
@@ -2,5 +2,4 @@
${MID_HOME0}/system/unix/inmidas usr/bin/inmidas
${MID_HOME0}/system/unix/gomidas usr/bin/gomidas
${MID_HOME0}/system/unix/helpmidas usr/bin/helpmidas
-${MID_HOME0}/libsrc/ftoc-new ${MID_HOME0}/libsrc/ftoc
${MID_HOME0}/system/ftoc-new ${MID_HOME0}/system/good-ftoc
diff --git a/debian/rules b/debian/rules
index 1c632c6..99451f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -41,15 +41,17 @@ override_dh_install:
-name "makefile" -o \
-name "default.mk" -o \
-name "*.h" -o \
- -name "*.inc" \) -exec rm -f {} \;
+ -name "*.inc" \) -delete
+ rm -rf $(MID_HOME)/libsrc/ftoc*
+ find $(MID_HOME) -type d -empty -delete
sed -e "s:^MIDVERS0=.*:MIDVERS0=$(MIDVERS):" \
-e "s:^MIDASHOME0=.*:MIDASHOME0=/usr/lib/eso-midas:" \
-i $(MID_HOME)/system/unix/inmidas \
$(MID_HOME)/system/unix/helpmidas \
$(MID_HOME)/system/unix/drs
dh_install -X.mod -XCOPYING -Xsetup~ \
- -X${MIDVERS}/test -X${MIDVERS}/install \
- -X${MIDVERS}/system/unix/man -X${MIDVERS}/libsrc/readline
+ -X$(MIDVERS)/test -X$(MIDVERS)/install \
+ -X$(MIDVERS)/system/unix/man -X$(MIDVERS)/libsrc/readline
override_dh_fixperms:
dh_fixperms
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/eso-midas.git
More information about the debian-science-commits
mailing list