Skip to content

Commit abdfc20

Browse files
committed
Fix header.tmpl and associated makefiles for updated language stuff.
1 parent 3503617 commit abdfc20

15 files changed

Lines changed: 7 additions & 97 deletions

File tree

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@
8080
/cups/testthreads
8181
/cups/tlscheck
8282
/desktop/cups.desktop
83-
/doc/index.html
84-
/doc/*/index.html
8583
/filter/commandtops
8684
/filter/gziptoany
8785
/filter/pstops
@@ -147,8 +145,6 @@
147145
/systemv/lpmove
148146
/systemv/lpoptions
149147
/systemv/lpstat
150-
/templates/header.tmpl
151-
/templates/*/header.tmpl
152148
/test/cups-str-*.html
153149
/test/*_log-*
154150
/tools/cups-oauth

configure

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,6 @@ ac_includes_default="\
649649
ac_header_c_list=
650650
ac_subst_vars='LTLIBOBJS
651651
LIBOBJS
652-
UNINSTALL_LANGUAGES
653-
INSTALL_LANGUAGES
654652
TIMEOUTSTARTSEC
655653
EXIT_TIMEOUT
656654
SYSTEMD_WANTED_BY
@@ -11941,35 +11939,7 @@ then :
1194111939

1194211940
fi
1194311941

11944-
INSTALL_LANGUAGES=""
11945-
UNINSTALL_LANGUAGES=""
11946-
LANGFILES=""
11947-
if test "x$LANGUAGES" != x
11948-
then :
11949-
11950-
INSTALL_LANGUAGES="install-languages"
11951-
UNINSTALL_LANGUAGES="uninstall-languages"
11952-
for lang in $LANGUAGES; do
11953-
if test -f templates/$lang/header.tmpl.in
11954-
then :
11955-
11956-
LANGFILES="$LANGFILES templates/$lang/header.tmpl"
11957-
11958-
fi
11959-
done
11960-
11961-
elif test "x$CUPS_BUNDLEDIR" != x
11962-
then :
11963-
11964-
INSTALL_LANGUAGES="install-langbundle"
11965-
UNINSTALL_LANGUAGES="uninstall-langbundle"
11966-
11967-
fi
11968-
11969-
11970-
11971-
11972-
ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups.pc desktop/cups.desktop scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket templates/header.tmpl packaging/cups.list $LANGFILES"
11942+
ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups.pc desktop/cups.desktop scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket packaging/cups.list"
1197311943

1197411944
cat >confcache <<\_ACEOF
1197511945
# This file is a shell script that caches the results of configure
@@ -12674,9 +12644,7 @@ do
1267412644
"scheduler/cups.path") CONFIG_FILES="$CONFIG_FILES scheduler/cups.path" ;;
1267512645
"scheduler/cups.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups.service" ;;
1267612646
"scheduler/cups.socket") CONFIG_FILES="$CONFIG_FILES scheduler/cups.socket" ;;
12677-
"templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
1267812647
"packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
12679-
"$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
1268012648
1268112649
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1268212650
esac

configure.ac

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,6 @@ AS_IF([test x$enable_shared = xno], [
4545
PKGCONFIG_LIBS_STATIC=""
4646
])
4747

48-
dnl See what languages are available and make sure we generate the localization
49-
dnl files as needed...
50-
INSTALL_LANGUAGES=""
51-
UNINSTALL_LANGUAGES=""
52-
LANGFILES=""
53-
AS_IF([test "x$LANGUAGES" != x], [
54-
INSTALL_LANGUAGES="install-languages"
55-
UNINSTALL_LANGUAGES="uninstall-languages"
56-
for lang in $LANGUAGES; do
57-
AS_IF([test -f templates/$lang/header.tmpl.in], [
58-
LANGFILES="$LANGFILES templates/$lang/header.tmpl"
59-
])
60-
done
61-
], [test "x$CUPS_BUNDLEDIR" != x], [
62-
INSTALL_LANGUAGES="install-langbundle"
63-
UNINSTALL_LANGUAGES="uninstall-langbundle"
64-
])
65-
66-
AC_SUBST([INSTALL_LANGUAGES])
67-
AC_SUBST([UNINSTALL_LANGUAGES])
68-
6948
dnl Provide autoconf with a list of files to generate and output them...
7049
AC_CONFIG_FILES([
7150
Makedefs
@@ -84,8 +63,6 @@ AC_CONFIG_FILES([
8463
scheduler/cups.path
8564
scheduler/cups.service
8665
scheduler/cups.socket
87-
templates/header.tmpl
8866
packaging/cups.list
89-
$LANGFILES
9067
])
9168
AC_OUTPUT

doc/Makefile

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
# Documentation makefile for CUPS.
33
#
44
# Copyright © 2020-2025 by OpenPrinting.
5-
# Copyright © 2007-2019 by Apple Inc.
6-
# Copyright © 1997-2007 by Easy Software Products.
75
#
86
# Licensed under Apache License v2.0. See the file "LICENSE" for more
9-
#s information.
7+
# information.
108
#
119

1210
include ../Makedefs
@@ -19,7 +17,6 @@ WEBPAGES = \
1917
apple-touch-icon.png \
2018
cups.css \
2119
cups-printable.css \
22-
index.html \
2320
robots.txt
2421
WEBIMAGES = \
2522
images/cups.png \
@@ -154,7 +151,7 @@ install: all install-data install-headers install-libs install-exec
154151
# Install data files...
155152
#
156153

157-
install-data: $(INSTALL_LANGUAGES)
154+
install-data:
158155
$(INSTALL_DIR) -m 755 $(DOCDIR)
159156
for file in $(WEBPAGES); do \
160157
$(INSTALL_MAN) $$file $(DOCDIR); \
@@ -171,17 +168,6 @@ install-data: $(INSTALL_LANGUAGES)
171168
$(INSTALL_MAN) $$file $(DOCDIR)/images; \
172169
done
173170

174-
install-languages:
175-
for lang in $(LANGUAGES); do \
176-
if test -d $$lang; then \
177-
$(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
178-
$(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
179-
$(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
180-
fi; \
181-
done
182-
183-
install-langbundle:
184-
185171

186172
#
187173
# Install programs...
@@ -208,7 +194,7 @@ install-libs:
208194
# Uninstall all documentation files...
209195
#
210196

211-
uninstall: $(UNINSTALL_LANGUAGES)
197+
uninstall:
212198
for file in $(WEBPAGES); do \
213199
$(RM) $(DOCDIR)/$$file; \
214200
done
@@ -224,12 +210,3 @@ uninstall: $(UNINSTALL_LANGUAGES)
224210
-$(RMDIR) $(DOCDIR)/images
225211
-$(RMDIR) $(DOCDIR)/help
226212
-$(RMDIR) $(DOCDIR)
227-
228-
uninstall-languages:
229-
-for lang in $(LANGUAGES); do \
230-
$(RM) $(DOCDIR)/$$lang/index.html; \
231-
$(RM) $(DOCDIR)/$$lang/cups.css; \
232-
$(RMDIR) $(DOCDIR)/$$lang; \
233-
done
234-
235-
install-langbundle:

templates/Makefile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,11 @@ install: all install-data install-headers install-libs install-exec
128128
# Install data files...
129129
#
130130

131-
install-data: $(INSTALL_LANGUAGES)
131+
install-data:
132132
$(INSTALL_DIR) -m 755 $(DATADIR)/templates
133133
for file in $(FILES); do \
134134
$(INSTALL_DATA) $$file $(DATADIR)/templates; \
135135
done
136-
137-
install-languages:
138136
for lang in $(LANGUAGES); do \
139137
if test -d $$lang; then \
140138
$(INSTALL_DIR) -m 755 $(DATADIR)/templates/$$lang; \
@@ -144,8 +142,6 @@ install-languages:
144142
fi \
145143
done
146144

147-
install-langbundle:
148-
149145

150146
#
151147
# Install programs...
@@ -172,18 +168,14 @@ install-libs:
172168
# Uninstall files...
173169
#
174170

175-
uninstall: $(UNINSTALL_LANGUAGES)
171+
uninstall:
176172
for file in $(FILES); do \
177173
$(RM) $(DATADIR)/templates/$$file; \
178174
done
179-
-$(RMDIR) $(DATADIR)/templates
180-
181-
uninstall-languages:
182175
for lang in $(LANGUAGES); do \
183176
for file in $(FILES); do \
184177
$(RM) $(DATADIR)/templates/$$lang/$$file; \
185178
done \
186179
$(RMDIR) $(DATADIR)/templates/$$lang; \
187180
done
188-
189-
uninstall-langbundle:
181+
-$(RMDIR) $(DATADIR)/templates

0 commit comments

Comments
 (0)