[SCM] hydrogen-drumkits/master: use get-orig-source.py for assembling the upstream tarball
umlaeute at users.alioth.debian.org
umlaeute at users.alioth.debian.org
Mon Sep 28 21:02:48 UTC 2015
The following commit has been merged in the master branch:
commit ad2e553249fb80447e8560ba937587ab8c60b802
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date: Mon Sep 28 20:59:42 2015 +0200
use get-orig-source.py for assembling the upstream tarball
diff --git a/debian/get-orig-source b/debian/get-orig-source
deleted file mode 100755
index 4321fe1..0000000
--- a/debian/get-orig-source
+++ /dev/null
@@ -1,37 +0,0 @@
-#! /bin/sh
-# Make hydrogen-drumkits upstream tarball from sourceforge
-
-#Please update version number if necessary...
-base_version=0.9.6.1
-
-test -x /usr/bin/wget || (echo "please install wget!" 1>&2 ; exit 1);
-date=`date +%Y%m%d`
-version="$base_version~$date"
-
-bdir="hydrogen-drumkits-$version"
-dir="../$bdir"
-arch="../hydrogen-drumkits_$version.orig.tar.gz"
-mkdir "$dir"
-mkdir "$dir/drumkits"
-
-KITS="`debian/update_drumkits_list.py`"
-
-for KIT in $KITS; do
- wget -P "$dir/drumkits" -nd -r -l1 "$KIT"
-done
-
-#rm -f "$dir/drumkits/index.html"
-md5sum drumkits/* > "$dir/md5sums.old"
-
-(cd "$dir" && md5sum drumkits/* >"$dir/md5sums")
-
-if diff --brief "$dir/md5sums.old" "$dir/md5sums" >/dev/null; then
- echo "Old and new version are the same." 1>&2
- echo "Upstream source package not rebuild."
-else
- rm "$dir/md5sums.old" "$dir/md5sums"
- tar zcf "$arch" -C.. "$bdir"
- echo "New upstream source package in $arch"
- echo "You can run uupdate $arch $version"
-fi
-rm -r "$dir"
diff --git a/debian/rules b/debian/rules
index f345990..dd29ca6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,8 +24,8 @@ override_dh_auto_install:
-exec tar xf '{}' -C $(KITS_DIR) ';'
get-orig-source:
- chmod a+x debian/get-orig-source
- debian/get-orig-source
+ chmod a+x debian/get-orig-source.py
+ debian/get-orig-source.py
override_dh_auto_clean:
dh_auto_clean
diff --git a/debian/update_drumkits_list.py b/debian/update_drumkits_list.py
deleted file mode 100755
index 8ac445f..0000000
--- a/debian/update_drumkits_list.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/python
-
-# update_drumkits_list.py
-#
-# Copyright (C) 2011 Alessio Treglia <alessio at debian.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-import sys
-import urllib
-import xml.etree.ElementTree
-
-URL = 'http://www.hydrogen-music.org/feeds/drumkit_list.php'
-FIELDS = ('name', 'url')
-
-def objects_to_list(objs):
- objs_list = []
- for i in objs:
- elem = dict()
- for field in FIELDS:
- elem[field] = i.find(field).text
- objs_list.append(elem)
- return objs_list
-
-def print_url_list(objs):
- for elem in objs:
- sys.stdout.write("%s\n" % elem['url'])
-
-def main():
- filename = urllib.urlretrieve(URL)[0]
- objs = xml.etree.ElementTree.parse(filename).findall('drumkit')
- print_url_list(objects_to_list(objs))
-
-if __name__ == '__main__':
- main()
--
hydrogen-drumkits packaging
More information about the pkg-multimedia-commits
mailing list