File: fixfsfaddr.sed

package info (click to toggle)
kde-dev-scripts 4%3A20.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,476 kB
  • sloc: perl: 15,559; lisp: 5,627; sh: 4,315; python: 3,892; ruby: 1,386; makefile: 13; sed: 9
file content (30 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /usr/bin/sed

# Copyright 2005 Nicolas GOUTTE <goutte@kde.org>
# License LGPL V2+

# The script helps to fix the FSF address
# Use:
#   find . -name .svn -prune , -type f -print | xargs fgrep -l "Free Software Foundation" | xargs sed -i -f fixfsfaddr.sed
# Note: you should check the changes before committing them.

# Implementation note: we need to replace phrase by phrase, as 
# the wrapping of the FSF address is at different places.

# Current FSF address: 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301

# Old address: 59 Temple Place, Suite 330, Boston, MA  02111-1307
s/[5]9 Temple Place,/51 Franklin Street,/
s/[5]9 Temple Place -/51 Franklin Street,/
s/[S]uite 330,/Fifth Floor,/
s/[S]uite 330$/Fifth Floor/
s/[0]2111-1307/02110-1301/

# Very old address: 675 Mass Ave, Cambridge, MA  02139
s/[6]75 Mass Ave/51 Franklin Street, Fifth Floor/
s/[C]ambridge/Boston/
s/[0]2139/02110-1301/
# Warning: the last two replaces seem to match the address of the MIT too.

# Typo in KDE: Franklin Steet
s/[F]ranklin Steet/Franklin Street/