This is an automated email from the git hooks/post-receive script. arand-guest pushed a commit to branch next in repository redeclipse-data.
commit 75535ad9bb455c8a6d92173852a492e90c279e23 Author: Martin Erik Werner <[email protected]> Date: Tue Mar 31 17:15:36 2015 +0200 Update generate-copyright script --- debian/generate-copyright | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/debian/generate-copyright b/debian/generate-copyright index 3e14494..0826437 100755 --- a/debian/generate-copyright +++ b/debian/generate-copyright @@ -2,34 +2,43 @@ cd "$(dirname "$0")"/.. +ver="$(dpkg-parsechangelog -S Version)" +ver="${ver%%-*}" + +all_licenses=redeclipse-base.clone/doc/all-licenses.txt + +test -e "$all_licenses" || \ + { + rm -rf redeclipse-base.clone && \ + git clone https://github.com/red-eclipse/base.git \ + --branch v"$ver" redeclipse-base.clone || \ + { echo "unable to get upstream all-licenses.txt file from base repo"; \ + exit 1; } + } + # Header cat <<EOF > debian/copyright-new Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Red Eclipse Upstream-Contact: Quinton "Quin" Reeves <[email protected]> Lee "Eihrul" Salzman <[email protected]> -Source: https://redeclipse.svn.sourceforge.net - All sourcecode-related items have been removed from the source package, they - are shipped in the redeclipse source package instead. -License: Red-Eclipse +Source: https://github.com/red-eclipse/data + +License: Summary EOF -# "Red-Eclipse" summary license, indented -sed -e 's/^/\ /' -e 's/^\ $/\ \./' doc/license.txt >> debian/copyright-new +# Data summary license, indented +sed -e 's/^/\ /' -e 's/^\ $/\ \./' readme.txt >> debian/copyright-new # Remove duplicated Format: line and insert upstream license dep5 file -sed '/Format:.*/d' doc/all-licenses.txt >> debian/copyright-new +sed '/Format:.*/d' "$all_licenses" >> debian/copyright-new -# Remove record stating some dirs are omitted (the dirs are removed in Debian) -awk 'BEGIN{ ORS="\n\n"; RS="" ; FS="\n"} $1 !~ /^Files: bin\//' debian/copyright-new > debian/copyright-temp +# Remove all records related to bin/*, doc/* and src/* +awk 'BEGIN{ ORS="\n\n"; RS="" ; FS="\n"} $1 !~ /^Files: (bin|src|doc)\// ' debian/copyright-new > debian/copyright-temp mv debian/copyright-temp debian/copyright-new -# Remove all records related to src/* -awk 'BEGIN{ ORS="\n\n"; RS="" ; FS="\n"} $1 !~ /^Files: src\//' debian/copyright-new > debian/copyright-temp -mv debian/copyright-temp debian/copyright-new - -# Remove akashi record, not included in Debian -awk 'BEGIN{ ORS="\n\n"; RS="" ; FS="\n"} $1 !~ /^Files: data\/fonts\/akashi\*.ttf\//' debian/copyright-new > debian/copyright-temp +# Remove data/ prefix +sed 's/ data\// /g' debian/copyright-new > debian/copyright-temp mv debian/copyright-temp debian/copyright-new # Add marker for inserting Debian chunk @@ -40,8 +49,10 @@ mv debian/copyright-temp debian/copyright-new ed -s debian/copyright-new <<EOF /INSERT_DEBIAN_HERE/c Files: debian/* -Copyright: 2011-2013 Martin Erik Werner <[email protected]> +Copyright: 2011-2015 Martin Erik Werner <[email protected]> License: Zlib . w EOF + +echo "done -> debian/copyright-new" -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/redeclipse-data.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

