~ubuntu-branches/ubuntu/trusty/redeclipse-data/trusty

« back to all changes in this revision

Viewing changes to debian/generate-copyright

  • Committer: Package Import Robot
  • Author(s): Martin Erik Werner
  • Date: 2012-09-01 21:11:53 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120901211153-8913lu8fs7qukj6y
Tags: 1.3.1-1
* New upstream development snapshot
* XZ compression for orig tarball
* Standards-Version 3.9.3
  - Set final DEP-5 Format: link

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
cd "$(dirname "$0")"/..
 
4
 
 
5
# Header
 
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.
 
14
License: Red-Eclipse
 
15
EOF
 
16
 
 
17
# "Red-Eclipse" summary license, indented
 
18
sed -e 's/^/\ /' -e 's/^\ $/\ \./' doc/license.txt >> debian/copyright-new
 
19
 
 
20
# Reason for being "non-free"
 
21
cat <<EOF >> debian/copyright-new
 
22
Disclaimer:
 
23
 This package is not part of Debian due to missing "sources" for artwork, audio,
 
24
 models, etc.
 
25
EOF
 
26
 
 
27
# Remove duplicated Format: line and insert upstream license dep5 file
 
28
sed '/Format:.*/d' doc/all-licenses.txt >> debian/copyright-new
 
29
 
 
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
 
33
 
 
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
 
37
 
 
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
 
41
 
 
42
# Debian chunk
 
43
ed -s debian/copyright-new <<EOF
 
44
/INSERT_DEBIAN_HERE/c
 
45
Files: debian/*
 
46
Copyright: 2011-2012 Martin Erik Werner <martinerikwerner@gmail.com>
 
47
License: Zlib
 
48
.
 
49
w
 
50
EOF