[hdf4] 05/08: Fix in-place sed for man page changes.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sun May 8 16:11:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch experimental
in repository hdf4.
commit 851d488fca9a716d102ec1fbcde7408305357690
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun May 8 16:46:39 2016 +0200
Fix in-place sed for man page changes.
---
debian/rules | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/debian/rules b/debian/rules
index 8f97d99..1d99079 100755
--- a/debian/rules
+++ b/debian/rules
@@ -156,19 +156,23 @@ override_dh_auto_install:
for obj in $(DESTDIR)/usr/bin/* $(DESTDIR)/usr/lib/*.so.* $(DESTDIR)/usr/lib-alt/*.so.*; do \
chrpath -d $${obj} || true; \
done
+
# Empty out the dependency field in our .la files
for file in $(DESTDIR)/usr/lib/*.la $(DESTDIR)/usr/lib-alt/*.la; do \
sed -i -e "/dependency_libs/ s/'.*'/''/" $$file ; \
done
+
# rename programs also provided by netcdf-bin
mv $(DESTDIR)/usr/bin/ncdump $(DESTDIR)/usr/bin/ncdump-hdf
mv $(DESTDIR)/usr/bin/ncgen $(DESTDIR)/usr/bin/ncgen-hdf
+
# rename manuals also provided by netcdf-bin
mv $(DESTDIR)/usr/share/man/man1/ncdump.1 $(DESTDIR)/usr/share/man/man1/ncdump-hdf.1
- sed -e 's/ncdump/ncdump-hdf/g' $(DESTDIR)/usr/share/man/man1/ncdump-hdf.1
+ sed -i -e 's/ncdump/ncdump-hdf/g' $(DESTDIR)/usr/share/man/man1/ncdump-hdf.1
+
mv $(DESTDIR)/usr/share/man/man1/ncgen.1 $(DESTDIR)/usr/share/man/man1/ncgen-hdf.1
- sed -e 's/ncgen/ncgen-hdf/g' $(DESTDIR)/usr/share/man/man1/ncgen-hdf.1
-
+ sed -i -e 's/ncgen/ncgen-hdf/g' $(DESTDIR)/usr/share/man/man1/ncgen-hdf.1
+
override_dh_makeshlibs:
dh_makeshlibs -- -v$(UPSTREAM_VERSION)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/hdf4.git
More information about the Pkg-grass-devel
mailing list