[redeclipse-data] 02/06: Cleanup main data install step
Martin Werner
arand-guest at moszumanska.debian.org
Sun Feb 11 21:35:25 UTC 2018
This is an automated email from the git hooks/post-receive script.
arand-guest pushed a commit to branch master
in repository redeclipse-data.
commit 599d90a0b5f57ed659d90cff36eb21143f968ddb
Author: Martin Erik Werner <martinerikwerner at gmail.com>
Date: Sun Feb 11 21:16:19 2018 +0100
Cleanup main data install step
* Skip installing of duplicated doc/ config/ sql/ directories under
/usr/share/games/redeclipse/data.
* Keep license.txt files when installing data. Since license information
is spread between various .txt files, some of which also contains
other informtation which might be relevant to keep, it is not feasible
to be able to remove all license information, hence we leave it all.
---
debian/rules | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/debian/rules b/debian/rules
index 7c658b6..daee033 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+installroot = $(CURDIR)/debian/redeclipse-data
+installdatadir = $(installroot)/usr/share/games/redeclipse/data
%:
dh $@
@@ -11,18 +13,15 @@ override_dh_auto_build:
play 4 15 1 1 54 54 512 512 0 0 fonts/
override_dh_auto_install:
- mkdir -p debian/redeclipse-data/usr/share/games/redeclipse/data
- find data -mindepth 1 -maxdepth 1 -type d \
- -not \( -name '.git*' -or -name '.pc*' -or -name 'debian' -or -name 'fonts' \) \
- -exec cp -r '{}' debian/redeclipse-data/usr/share/games/redeclipse/data \;
- find . -mindepth 1 -maxdepth 1 -type d \
- -not \( -name '.git*' -or -name '.pc*' -or -name 'debian' -or -name 'fonts' -or -name 'data' \) \
- -exec cp -r '{}' debian/redeclipse-data/usr/share/games/redeclipse/data \;
- # Delete hidden .git directories that could not be found due to maxdepth 1
- find $(CURDIR)/debian/redeclipse-data -type d -name '.[^.]*' -prune -exec rm -rf {} \;
- find $(CURDIR)/debian/redeclipse-data/usr/share/games/redeclipse/data -name '.git*' -delete
- find $(CURDIR)/debian/redeclipse-data/usr/share/games/redeclipse/data -name 'Thumbs.db*' -delete
- find $(CURDIR)/debian/redeclipse-data/usr/share/games/redeclipse/data -iname 'license.txt' -delete
+ mkdir -p $(installdatadir)
+ tar -C data \
+ --exclude-vcs \
+ --exclude-vcs-ignores \
+ --exclude=.github \
+ --exclude=fonts \
+ --exclude=Thumbs.db \
+ -cf - . | \
+ tar -C $(installdatadir) -xf -
get-orig-source:
uscan --noconf --rename --repack --compression xz --force-download --download-current-version --destdir=.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/redeclipse-data.git
More information about the Pkg-games-commits
mailing list