summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-04-28 06:17:59 -0700
committerKevin Mitchell <kevmitch@gmail.com>2014-04-28 06:19:04 -0700
commitf2a85954159b7e5af087ad185dbb5201e87d4765 (patch)
treeb338e85062bd818f86e7165bb597a868c2e5ed05
parentab7b8ec7ac73ce50eb6803c29c8da54e5a098605 (diff)
downloadmpv-build-f2a85954159b7e5af087ad185dbb5201e87d4765.tar.bz2
mpv-build-f2a85954159b7e5af087ad185dbb5201e87d4765.tar.xz
debian: install more stuff in /usr/share/doc
add stuff from TOOLS and more stuff from DOCS
-rwxr-xr-xdebian/rules37
1 files changed, 33 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index 2dcd230..b21a870 100755
--- a/debian/rules
+++ b/debian/rules
@@ -69,14 +69,43 @@ override_dh_auto_configure: ffmpeg_build libass_build
override_dh_auto_build:
scripts/mpv-build $(WAFLAGS)
-DOCDEST=debian/mpv/usr/share/doc/mpv
+
DOCSOURCE=mpv/DOCS
+TOOLSSOURCE=mpv/TOOLS
+DOCDEST=debian/mpv/usr/share/doc/mpv
+TOOLSDEST=$(DOCDEST)/TOOLS
# call waf to install to the debian packageing dir
override_dh_auto_install:
cd mpv && python waf -v install --destdir=../debian/mpv
- /usr/bin/install -d "$(DOCDEST)"
- /usr/bin/install -m644 "$(DOCSOURCE)/encoding.rst" "$(DOCDEST)"
- /usr/bin/install -m644 "$(DOCSOURCE)/edl-mpv.rst" "$(DOCDEST)"
+
+ find "$(DOCSOURCE)" -mindepth 1 -type d \
+ -not -regex '.*man.*' \
+ -not -regex '.*client_api_examples.*' \
+ -printf "%P\0" | \
+ xargs -0i /usr/bin/install -d "$(DOCDEST)/{}"
+
+ find "$(DOCSOURCE)" -mindepth 1 -type f -not -regex '.*manu.*' \
+ -not -regex '.*man.*' \
+ -not -regex '.*client_api_examples.*' \
+ -not -name 'tech-overview.txt' \
+ -not -name 'waf-buildsystem.rst' \
+ -not -name 'crosscompile-mingw.md' \
+ -not -name 'coding-style.md' \
+ -printf "%P\0" | \
+ xargs -0i /usr/bin/install -m644 "$(DOCSOURCE)/{}" "$(DOCDEST)/{}"
+
+ find "$(TOOLSSOURCE)" -mindepth 1 -type d \
+ -not -regex '.*osxbundle.*' \
+ -printf "%P\0" | \
+ xargs -0i /usr/bin/install -d "$(TOOLSDEST)/{}"
+
+ find "$(TOOLSSOURCE)" -mindepth 1 -type f \
+ -not -regex '.*osxbundle.*' \
+ -not -name 'gen-x11-icon.sh' \
+ -not -name 'file2string.pl' \
+ -not -name 'uncrustify.cfg' \
+ -printf "%P\0" | \
+ xargs -0i /usr/bin/install -m644 "$(TOOLSSOURCE)/{}" "$(TOOLSDEST)/{}"
# for manually installed dependencies
override_dh_shlibdeps: