File: rules

package info (click to toggle)
dar 2.4.5.debian.1-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 10,608 kB
  • sloc: cpp: 50,637; sh: 12,281; ansic: 836; xml: 694; makefile: 369; csh: 104; perl: 43; sed: 16
file content (24 lines) | stat: -rwxr-xr-x 1,060 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_CONFIGURE_EXTRA_FLAGS := --disable-upx --enable-mode=64

DEB_DH_INSTALL_SOURCEDIR = debian/tmp

DEB_INSTALL_DOCS_ALL =

binary-post-install/dar::
	sed -e "s%SOMEPATH%/usr/share/dar%g" doc/samples/dar_par.dcf > debian/dar/usr/share/dar/dar_par.dcf
	cp doc/samples/dar_par_create.duc debian/dar/usr/share/dar
	cp doc/samples/dar_par_test.duc debian/dar/usr/share/dar

binary-post-install/dar-docs::
	mv debian/dar-docs/usr/share/dar/* debian/dar-docs/usr/share/doc/dar-docs
	rmdir debian/dar-docs/usr/share/dar
	rm debian/dar-docs/usr/share/doc/dar-docs/samples/dar_par.dcf
	rm debian/dar-docs/usr/share/doc/dar-docs/samples/dar_par_create.duc
	rm debian/dar-docs/usr/share/doc/dar-docs/samples/dar_par_test.duc
	mv debian/dar-docs/usr/share/doc/dar-docs/samples debian/dar-docs/usr/share/doc/dar-docs/examples
	chmod 644  debian/dar-docs/usr/share/doc/dar-docs/examples/MyBackup.sh.tar.gz
	rm debian/dar-docs/usr/share/doc/dar-docs/html/jquery.js