~ubuntu-branches/ubuntu/utopic/cups/utopic

« back to all changes in this revision

Viewing changes to man/Makefile.l10n

  • Committer: Package Import Robot
  • Author(s): Didier Raboud, Till Kamppeter, Steve Langasek, Didier Raboud
  • Date: 2014-01-03 18:42:39 UTC
  • mfrom: (99.2.3 sid)
  • Revision ID: package-import@ubuntu.com-20140103184239-85wju2l7weie4dgo
Tags: 1.7.0-1
* New 1.7.0 upstream release

[ Till Kamppeter ]
* Refresh most patches with quilt
* Removed usb-backend-do-not-crash-if-usb-disabled-in-bios and
  cupsd-no-crash-on-avahi-threaded-poll-shutdown patches as they got
  applied upstream
* Removed drop-arch-specifics-from-doc patch as it is not needed
  anymore
* Updated drop_unnecessary_dependencies, manpage-hyphen-minus,
  manpage-translations and ppd-poll-with-client-conf patches manually
  to apply to the new CUPS version
* Added error counting exception from
  usb-backend-do-not-crash-if-usb-disabled-in-bios to
  tests-ignore-warnings
* Install the newly added ippfind utility and its manpage in
  cups-client
* Added pwg.h to libcups2-dev package
* Call dh_auto_clean only if the file Makedefs is present, to avoid a
  FTBFS
* Added color management extensions from Joe Simon's GSoC 2013
  project.
* Patch cups-files.conf to activate CUPS daemon syncing of files when
  closing, so that config files (like printers.conf) do not
  mysteriously disappear (LP: #1157972)
* In the AppArmor profile, allow execution of programs in
  /etc/cups/interfaces/, needed to make CUPS working with queues based
  on System V interface scripts, especially PPD-less queues
  auto-generated by cups-browsed from cups-filters 1.0.41 on.
* Silenced AppArmor noise from udev.conf in syslog (LP: #1229766)

[ Steve Langasek ]
* Add cups-filters (>= 1.0.42) as alternative to foomatic-filters
  (which is deprecated) in package relationships

[ Didier Raboud ]
* Remove Roger Leigh from uploaders on his request with thanks for his
  past work!
* Switch avahi LSB Should-Start dependency to be avahi-daemon; also
  bump package relationship to >= 0.6.31-3~ (Closes: #731608)
* Refresh the manpage translation files
* Move the USB backend quirk rules file to cups-server-common
* Add 38 new 1.7.0 libcups2 symbols
* Mark one C++ libcupsppdc1 symbol as optional as it isn't exported in
  1.7.0 anymore
* Import Fedora patches:
  - to avoid sign-extending CRCs in gz decompression
  - to build with full read-only relocations
  - to fix job history logging (upstream patch)
  - to set the internal default for SyncOnClose to Yes, instead of
    only configuring it to Yes
  - to fix a stringpool corruption issue
  - to prevent USB timeouts causing incorrect print output
* Import Fedora patch updates:
  - to dont-use-dbus-from-two-threads patch so it removes a call to
    avahi_threaded_poll_stop()
  - to avoid_stale_lockfile_in_dbus_notifier patch to call _exit when
    handling SIGTERM
* Move manpage-translations patch at the very end of the patch series
  to have it include all our patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# "$Id: $"
 
3
#
 
4
#   Man page makefile for the Common UNIX Printing System (CUPS).
 
5
#
 
6
#   Copyright 2007 by Apple Inc.
 
7
#   Copyright 1993-2006 by Easy Software Products.
 
8
#
 
9
#   These coded instructions, statements, and computer programs are the
 
10
#   property of Apple Inc. and are protected by Federal copyright
 
11
#   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
 
12
#   which should have been included with this file.  If this file is
 
13
#   file is missing or damaged, see the license at "http://www.cups.org/".
 
14
#
 
15
 
 
16
include ../../Makedefs
 
17
 
 
18
 
 
19
#
 
20
# Man pages...
 
21
#
 
22
 
 
23
MAN1    =       cancel.$(MAN1EXT) \
 
24
                cups-config.$(MAN1EXT) \
 
25
                cupstestdsc.$(MAN1EXT) \
 
26
                cupstestppd.$(MAN1EXT) \
 
27
                lp.$(MAN1EXT) \
 
28
                lpoptions.$(MAN1EXT) \
 
29
                lppasswd.$(MAN1EXT) \
 
30
                lpq.$(MAN1EXT) \
 
31
                lprm.$(MAN1EXT) \
 
32
                lpr.$(MAN1EXT) \
 
33
                lpstat.$(MAN1EXT)
 
34
MAN5    =       classes.conf.$(MAN5EXT) \
 
35
                client.conf.$(MAN5EXT) \
 
36
                cups-snmp.conf.$(MAN5EXT) \
 
37
                cupsd.conf.$(MAN5EXT) \
 
38
                cups-files.conf.$(MAN5EXT) \
 
39
                mailto.conf.$(MAN5EXT) \
 
40
                mime.convs.$(MAN5EXT) \
 
41
                mime.types.$(MAN5EXT) \
 
42
                printers.conf.$(MAN5EXT) \
 
43
                subscriptions.conf.$(MAN5EXT)
 
44
MAN7    =       backend.$(MAN7EXT) \
 
45
                filter.$(MAN7EXT)
 
46
MAN8    =       cupsaccept.$(MAN8EXT) \
 
47
                cupsaddsmb.$(MAN8EXT) \
 
48
                cupsctl.$(MAN8EXT) \
 
49
                cupsfilter.$(MAN8EXT) \
 
50
                cups-deviced.$(MAN8EXT) \
 
51
                cups-driverd.$(MAN8EXT) \
 
52
                cups-lpd.$(MAN8EXT) \
 
53
                cups-polld.$(MAN8EXT) \
 
54
                cupsd.$(MAN8EXT) \
 
55
                cupsenable.$(MAN8EXT) \
 
56
                lpadmin.$(MAN8EXT) \
 
57
                lpinfo.$(MAN8EXT) \
 
58
                lpmove.$(MAN8EXT) \
 
59
                lpc.$(MAN8EXT)
 
60
 
 
61
 
 
62
#
 
63
# Make everything...
 
64
#
 
65
 
 
66
all:    manpages.gz html
 
67
 
 
68
# Prepare all the existing manpages, and compress them.
 
69
# But do not fail if a manpage was not generated.
 
70
manpages.gz: manpages.gz-stamp
 
71
manpages.gz-stamp:
 
72
        for file in $(MAN1) $(MAN5) $(MAN7) $(MAN8); do \
 
73
                $(MAKE) $$file || true; \
 
74
        done
 
75
        touch $@
 
76
 
 
77
#
 
78
# Clean all config and object files...
 
79
#
 
80
 
 
81
clean:
 
82
        $(RM) $(MAN1) $(MAN5) $(MAN7) $(MAN8)
 
83
        for file in $(MAN1); do \
 
84
                $(RM) ../../doc/help/man-`basename $$file .$(MAN1EXT)`.$(LANGUAGE).html; \
 
85
        done
 
86
        for file in $(MAN5); do \
 
87
                $(RM) ../../doc/help/man-`basename $$file .$(MAN5EXT)`.$(LANGUAGE).html; \
 
88
        done
 
89
        for file in $(MAN7); do \
 
90
                $(RM) ../../doc/help/man-`basename $$file .$(MAN7EXT)`.$(LANGUAGE).html; \
 
91
        done
 
92
        for file in $(MAN8); do \
 
93
                $(RM) ../../doc/help/man-`basename $$file .$(MAN8EXT)`.$(LANGUAGE).html; \
 
94
        done
 
95
        for file in *.man.in; do \
 
96
                $(RM) `basename $$file .in`; \
 
97
        done
 
98
        $(RM) manpages.gz-stamp
 
99
 
 
100
 
 
101
#
 
102
# Dummy depend target...
 
103
#
 
104
 
 
105
depend:
 
106
 
 
107
 
 
108
#
 
109
# Install files...
 
110
#
 
111
 
 
112
MANDIR := $(MANDIR)/$(LANGUAGE)
 
113
AMANDIR := $(AMANDIR)/$(LANGUAGE)
 
114
 
 
115
install:        all
 
116
        $(INSTALL_DIR) -m 755 $(MANDIR)/man1
 
117
        for file in $(wildcard $(MAN1)); do \
 
118
                echo Installing $$file in $(MANDIR)/man1...; \
 
119
                $(INSTALL_MAN) $$file $(MANDIR)/man1; \
 
120
        done
 
121
        $(INSTALL_DIR) -m 755 $(MANDIR)/man5
 
122
        for file in $(wildcard $(MAN5)); do \
 
123
                echo Installing $$file in $(MANDIR)/man5...; \
 
124
                $(INSTALL_MAN) $$file $(MANDIR)/man5; \
 
125
        done
 
126
        $(INSTALL_DIR) -m 755 $(MANDIR)/man7
 
127
        for file in $(wildcard $(MAN7)); do \
 
128
                echo Installing $$file in $(MANDIR)/man7...; \
 
129
                $(INSTALL_MAN) $$file $(MANDIR)/man7; \
 
130
        done
 
131
        $(INSTALL_DIR) -m 755 $(AMANDIR)/man$(MAN8DIR)
 
132
        for file in $(wildcard $(MAN8)); do \
 
133
                echo Installing $$file in $(AMANDIR)/man$(MAN8DIR)...; \
 
134
                $(INSTALL_MAN) $$file $(AMANDIR)/man$(MAN8DIR); \
 
135
        done
 
136
        if [ -f cupsreject.$(MAN8EXT) ]; then \
 
137
                $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsreject.$(MAN8EXT); \
 
138
        fi
 
139
        if [ -f cupsaccept.$(MAN8EXT) ]; then \
 
140
                $(LN) cupsaccept.$(MAN8EXT) $(AMANDIR)/man$(MAN8DIR)/cupsreject.$(MAN8EXT); \
 
141
        fi
 
142
        if [ -f cupsdisable.$(MAN8EXT) ]; then \
 
143
                $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT); \
 
144
        fi
 
145
        if [ -f cupsenable.$(MAN8EXT) ]; then \
 
146
                $(LN) cupsenable.$(MAN8EXT) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT); \
 
147
        fi
 
148
 
 
149
 
 
150
#
 
151
# Uninstall files...
 
152
#
 
153
 
 
154
uninstall:
 
155
        for file in $(MAN1); do \
 
156
                $(RM) $(MANDIR)/man1/$$file; \
 
157
        done
 
158
        -$(RMDIR) $(MANDIR)/man1
 
159
        for file in $(MAN5); do \
 
160
                $(RM) $(MANDIR)/man5/$$file; \
 
161
        done
 
162
        -$(RMDIR) $(MANDIR)/man5
 
163
        for file in $(MAN7); do \
 
164
                $(RM) $(MANDIR)/man7/$$file; \
 
165
        done
 
166
        -$(RMDIR) $(MANDIR)/man7
 
167
        for file in $(MAN8); do \
 
168
                $(RM) $(AMANDIR)/man$(MAN8DIR)/$$file; \
 
169
        done
 
170
        $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsreject.$(MAN8EXT)
 
171
        $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
 
172
        -$(RMDIR) $(AMANDIR)/man$(MAN8DIR)
 
173
 
 
174
 
 
175
#
 
176
# Make html versions of man pages...
 
177
#
 
178
 
 
179
MANTOHTML = ../mantohtml
 
180
html:   manpages.gz $(MANTOHTML)
 
181
        echo Converting man pages to HTML...
 
182
        for file in $(wildcard $(MAN1)); do \
 
183
                echo "    $$file..."; \
 
184
                $(MANTOHTML) `basename $$file .$(MAN1EXT)`.man >../../doc/help/man-`basename $$file .$(MAN1EXT)`.$(LANGUAGE).html; \
 
185
        done
 
186
        for file in $(wildcard $(MAN5)); do \
 
187
                echo "    $$file..."; \
 
188
                $(MANTOHTML) `basename $$file .$(MAN5EXT)`.man >../../doc/help/man-`basename $$file .$(MAN5EXT)`.$(LANGUAGE).html; \
 
189
        done
 
190
        for file in $(wildcard $(MAN7)); do \
 
191
                echo "    $$file..."; \
 
192
                $(MANTOHTML) `basename $$file .$(MAN7EXT)`.man >../../doc/help/man-`basename $$file .$(MAN7EXT)`.$(LANGUAGE).html; \
 
193
        done
 
194
        for file in $(wildcard $(MAN8)); do \
 
195
                echo "    $$file..."; \
 
196
                $(MANTOHTML) `basename $$file .$(MAN8EXT)`.man >../../doc/help/man-`basename $$file .$(MAN8EXT)`.$(LANGUAGE).html; \
 
197
        done
 
198
 
 
199
.SUFFIXES: .man.in .man
 
200
# Keep the generated .man because they are needed for the html rule
 
201
.PRECIOUS: %.man
 
202
 
 
203
.man.in.man:
 
204
        sed -e 's:@CUPS_DATADIR@:$(DATADIR):' \
 
205
            -e 's:@CUPS_SERVERROOT@:$(SERVERROOT):' \
 
206
            -e 's:@CUPS_SERVERBIN@:$(SERVERBIN):' $< > $@
 
207
 
 
208
#
 
209
# End of "$Id: $".
 
210
#