1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 05_no_locale_alias.dpatch by Moritz Breit <mail@mobr.de>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Prevent installation of /usr/share/locale/locale.alias
8
diff -urNad --exclude=CVS --exclude=.svn ./intl/Makefile.in /tmp/dpep-work.jyYPGd/pingus-0.6.0/intl/Makefile.in
9
--- ./intl/Makefile.in 2003-04-10 23:34:16.000000000 +0200
10
+++ /tmp/dpep-work.jyYPGd/pingus-0.6.0/intl/Makefile.in 2005-08-07 22:29:28.000000000 +0200
12
plural.$lo plural-exp.$lo localcharset.$lo localename.$lo osdep.$lo
13
GETTOBJS = intl-compat.$lo
14
DISTFILES.common = Makefile.in \
15
-config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
16
+config.charset ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
17
DISTFILES.generated = plural.c
18
DISTFILES.normal = VERSION
19
DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc
24
- $(mkinstalldirs) $(DESTDIR)$(localedir); \
25
- test -f $(DESTDIR)$(localedir)/locale.alias \
26
- && orig=$(DESTDIR)$(localedir)/locale.alias \
27
- || orig=$(srcdir)/locale.alias; \
28
- temp=$(DESTDIR)$(localedir)/t-locale.alias; \
29
- dest=$(DESTDIR)$(localedir)/locale.alias; \
30
- sed -f ref-add.sed $$orig > $$temp; \
31
- $(INSTALL_DATA) $$temp $$dest; \
40
- if test -f $(DESTDIR)$(localedir)/locale.alias; then \
41
- temp=$(DESTDIR)$(localedir)/t-locale.alias; \
42
- dest=$(DESTDIR)$(localedir)/locale.alias; \
43
- sed -f ref-del.sed $$dest > $$temp; \
44
- if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
47
- $(INSTALL_DATA) $$temp $$dest; \