File: rules

package info (click to toggle)
unoconv 0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 516 kB
  • sloc: python: 979; makefile: 147; sh: 8
file content (14 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

override_dh_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/unoconv install install-links
	mv $(CURDIR)/debian/unoconv/usr/bin/odt2txt $(CURDIR)/debian/unoconv/usr/bin/odt2txt.unoconv
	# Add link to manual pages
	find debian/unoconv/usr/bin -name '*2*' | \
	  while read f; do \
	    dh_link usr/share/man/man1/unoconv.1 usr/share/man/man1/"`echo "$$f" | sed -e s#debian/unoconv/usr/bin/##`".1; \
	  done