[SCM] hydrogen-drumkits/master: Cleanup extracted drumkits

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Mon Sep 28 21:02:49 UTC 2015


The following commit has been merged in the master branch:
commit 5e27a8f7ff4db8773a32470654295beca174c101
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Mon Sep 28 22:33:07 2015 +0200

    Cleanup extracted drumkits
    
    - remove dotfiles
    - remove extra licence[sic!] files
    - remove empty dirs
    - fix perms

diff --git a/debian/rules b/debian/rules
index d13688e..77e89e8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,9 +20,20 @@ override_dh_auto_install:
 	find drumkits/ \
 		-name "*.h2drumkit" \
 		-exec cp '{}' tmp ';'
+	# extract all drumkits
 	find tmp/ -name "*.h2drumkit" \
 		-exec echo installing drumkit '{}' ';' \
 		-exec tar xf '{}' -C $(KITS_DIR) ';'
+	# fixes
+	## fix permissions
+	find $(KITS_DIR) -type f -exec chmod a-x '{}' '+'
+	## oops, some drumkit packages contain .dotfiles
+	find $(KITS_DIR) -name ".*" -delete
+	## remove extra licenses (already covered by debian/copyright)
+	find $(KITS_DIR) -type f -name LICENCE -or -name COPYING -delete
+	## remove empty directories
+	find $(KITS_DIR) -type d -empty -delete
+
 	## some drumkits are effects
 	mv "$(KITS_DIR)"/belofilms.com* $(FXKITS_DIR)
 

-- 
hydrogen-drumkits packaging



More information about the pkg-multimedia-commits mailing list