3
cd "$(dirname "$0")"/..
6
cat <<EOF > debian/copyright-new
7
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
8
Upstream-Name: Red Eclipse
9
Upstream-Contact: Quinton "Quin" Reeves <qreeves@gmail.com>
10
Lee "Eihrul" Salzman <lsalzman@gmail.com>
11
Source: https://redeclipse.svn.sourceforge.net
12
All sourcecode-related items have been removed from the source package, they
13
are shipped in the redeclipse source package instead.
17
# "Red-Eclipse" summary license, indented
18
sed -e 's/^/\ /' -e 's/^\ $/\ \./' doc/license.txt >> debian/copyright-new
20
# Reason for being "non-free"
21
cat <<EOF >> debian/copyright-new
23
This package is not part of Debian due to missing "sources" for artwork, audio,
27
# Remove duplicated Format: line and insert upstream license dep5 file
28
sed '/Format:.*/d' doc/all-licenses.txt >> debian/copyright-new
30
# Remove record stating some dirs are omitted (the dirs are removed in Debian)
31
awk 'BEGIN{ ORS="\n\n"; RS="" ; FS="\n"} $1 !~ /^Files: bin\//' debian/copyright-new > debian/copyright-temp
32
mv debian/copyright-temp debian/copyright-new
34
# Remove all records related to src/*
35
awk 'BEGIN{ ORS="\n\n"; RS="" ; FS="\n"} $1 !~ /^Files: src\//' debian/copyright-new > debian/copyright-temp
36
mv debian/copyright-temp debian/copyright-new
38
# Add marker for inserting Debian chunk
39
awk 'BEGIN{ ORS="\n\n"; RS="" ; FS="\n"} $1 ~ /^License: Zlib$/ { print "INSERT_DEBIAN_HERE" } { print }' debian/copyright-new > debian/copyright-temp
40
mv debian/copyright-temp debian/copyright-new
43
ed -s debian/copyright-new <<EOF
46
Copyright: 2011-2012 Martin Erik Werner <martinerikwerner@gmail.com>