~ubuntu-branches/ubuntu/trusty/screen/trusty-backports

« back to all changes in this revision

Viewing changes to debian/patches/30fix_fsf_address.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Jan Christoph Nordholz
  • Date: 2008-06-12 19:33:30 UTC
  • mfrom: (1.1.13 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080612193330-1tt3qhpxonbgdmq2
Tags: 4.0.3-11
* Unbreak <End> and <^A Bksp> using a patch from Loïc Minier
  (thanks!) - introduced as new 45suppress_remap.dpatch.
  Closes: #484647.
* Bump Standards version to 3.8.0. No changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
## 30fix_fsf_address.dpatch by Jan Christoph Nordholz <hesso@pool.math.tu-berlin.de>
 
3
##
 
4
## DP: Update the FSF address in the GPL header of the source files
 
5
## DP: until upstream does.
 
6
 
 
7
set -o errexit
 
8
 
 
9
non_ascii_source_files="acls.c process.c help.c"
 
10
original_encoding=iso-8859-1
 
11
patched_encoding=utf-8
 
12
 
 
13
convert_encoding () {
 
14
    local in_encoding=$1
 
15
    local out_encoding=$2
 
16
    local in_file=$3
 
17
    local out_file=$(tempfile)
 
18
    iconv --from-code $in_encoding --to-code $out_encoding $in_file > $out_file
 
19
    mv $out_file $in_file
 
20
}
 
21
 
 
22
dpatch_patch () {
 
23
    for file in *.c; do
 
24
        sed -i -e 's/59 Temple Place - Suite 330, Boston, MA  02111-1307, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/' $file
 
25
    done
 
26
}
 
27
 
 
28
dpatch_unpatch () {
 
29
    for file in *.c; do
 
30
        sed -i -e 's/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/59 Temple Place - Suite 330, Boston, MA  02111-1307, USA/' $file
 
31
    done
 
32
}
 
33
 
 
34
DPATCH_LIB_NO_DEFAULT=1
 
35
 
 
36
. /usr/share/dpatch/dpatch.lib.sh