]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix header.tmpl and associated makefiles for updated language stuff.
authorMichael R Sweet <msweet@msweet.org>
Sat, 10 May 2025 22:22:53 +0000 (18:22 -0400)
committerMichael R Sweet <msweet@msweet.org>
Sat, 10 May 2025 22:22:53 +0000 (18:22 -0400)
15 files changed:
.gitignore
configure
configure.ac
doc/Makefile
templates/Makefile
templates/da/header.tmpl [moved from templates/da/header.tmpl.in with 100% similarity]
templates/de/header.tmpl [moved from templates/de/header.tmpl.in with 100% similarity]
templates/es/header.tmpl [moved from templates/es/header.tmpl.in with 100% similarity]
templates/fr/header.tmpl [moved from templates/fr/header.tmpl.in with 100% similarity]
templates/header.tmpl [moved from templates/header.tmpl.in with 100% similarity]
templates/ja/header.tmpl [moved from templates/ja/header.tmpl.in with 100% similarity]
templates/pl/header.tmpl [moved from templates/pl/header.tmpl.in with 100% similarity]
templates/pt_BR/header.tmpl [moved from templates/pt_BR/header.tmpl.in with 100% similarity]
templates/ru/header.tmpl [moved from templates/ru/header.tmpl.in with 100% similarity]
templates/sv/header.tmpl [moved from templates/sv/header.tmpl.in with 100% similarity]

index 9cad022df86aa81936b64f1b435a22e618258945..e518b2200fef7e263088abcde5766f4bd77f87ad 100644 (file)
@@ -80,8 +80,6 @@
 /cups/testthreads
 /cups/tlscheck
 /desktop/cups.desktop
-/doc/index.html
-/doc/*/index.html
 /filter/commandtops
 /filter/gziptoany
 /filter/pstops
 /systemv/lpmove
 /systemv/lpoptions
 /systemv/lpstat
-/templates/header.tmpl
-/templates/*/header.tmpl
 /test/cups-str-*.html
 /test/*_log-*
 /tools/cups-oauth
index 83fd87d6292543b6143bb0cabb6ca785332c1f22..358b0ba394219ce48e6034801562308711117698 100755 (executable)
--- a/configure
+++ b/configure
@@ -649,8 +649,6 @@ ac_includes_default="\
 ac_header_c_list=
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
-UNINSTALL_LANGUAGES
-INSTALL_LANGUAGES
 TIMEOUTSTARTSEC
 EXIT_TIMEOUT
 SYSTEMD_WANTED_BY
@@ -11941,35 +11939,7 @@ then :
 
 fi
 
-INSTALL_LANGUAGES=""
-UNINSTALL_LANGUAGES=""
-LANGFILES=""
-if test "x$LANGUAGES" != x
-then :
-
-    INSTALL_LANGUAGES="install-languages"
-    UNINSTALL_LANGUAGES="uninstall-languages"
-    for lang in $LANGUAGES; do
-       if test -f templates/$lang/header.tmpl.in
-then :
-
-           LANGFILES="$LANGFILES templates/$lang/header.tmpl"
-
-fi
-    done
-
-elif test "x$CUPS_BUNDLEDIR" != x
-then :
-
-    INSTALL_LANGUAGES="install-langbundle"
-    UNINSTALL_LANGUAGES="uninstall-langbundle"
-
-fi
-
-
-
-
-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"
+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"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -12674,9 +12644,7 @@ do
     "scheduler/cups.path") CONFIG_FILES="$CONFIG_FILES scheduler/cups.path" ;;
     "scheduler/cups.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups.service" ;;
     "scheduler/cups.socket") CONFIG_FILES="$CONFIG_FILES scheduler/cups.socket" ;;
-    "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
     "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
-    "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
index 3e6650686ea5f60a7b0ad70e439280ed3257386d..6509bab39236f1e5ea2373a4b93632c40f9c068f 100644 (file)
@@ -45,27 +45,6 @@ AS_IF([test x$enable_shared = xno], [
     PKGCONFIG_LIBS_STATIC=""
 ])
 
-dnl See what languages are available and make sure we generate the localization
-dnl files as needed...
-INSTALL_LANGUAGES=""
-UNINSTALL_LANGUAGES=""
-LANGFILES=""
-AS_IF([test "x$LANGUAGES" != x], [
-    INSTALL_LANGUAGES="install-languages"
-    UNINSTALL_LANGUAGES="uninstall-languages"
-    for lang in $LANGUAGES; do
-       AS_IF([test -f templates/$lang/header.tmpl.in], [
-           LANGFILES="$LANGFILES templates/$lang/header.tmpl"
-       ])
-    done
-], [test "x$CUPS_BUNDLEDIR" != x], [
-    INSTALL_LANGUAGES="install-langbundle"
-    UNINSTALL_LANGUAGES="uninstall-langbundle"
-])
-
-AC_SUBST([INSTALL_LANGUAGES])
-AC_SUBST([UNINSTALL_LANGUAGES])
-
 dnl Provide autoconf with a list of files to generate and output them...
 AC_CONFIG_FILES([
     Makedefs
@@ -84,8 +63,6 @@ AC_CONFIG_FILES([
     scheduler/cups.path
     scheduler/cups.service
     scheduler/cups.socket
-    templates/header.tmpl
     packaging/cups.list
-    $LANGFILES
 ])
 AC_OUTPUT
index 38f2b4ce3bf77ae07c812bc38a8debd39400aeb2..93808bfa066d8e242082929520ae862e28417451 100644 (file)
@@ -2,11 +2,9 @@
 # Documentation makefile for CUPS.
 #
 # Copyright © 2020-2025 by OpenPrinting.
-# Copyright © 2007-2019 by Apple Inc.
-# Copyright © 1997-2007 by Easy Software Products.
 #
 # Licensed under Apache License v2.0.  See the file "LICENSE" for more
-#s information.
+# information.
 #
 
 include ../Makedefs
@@ -19,7 +17,6 @@ WEBPAGES      =       \
                        apple-touch-icon.png \
                        cups.css \
                        cups-printable.css \
-                       index.html \
                        robots.txt
 WEBIMAGES      =       \
                        images/cups.png \
@@ -154,7 +151,7 @@ install:    all install-data install-headers install-libs install-exec
 # Install data files...
 #
 
-install-data: $(INSTALL_LANGUAGES)
+install-data:
        $(INSTALL_DIR) -m 755 $(DOCDIR)
        for file in $(WEBPAGES); do \
                $(INSTALL_MAN) $$file $(DOCDIR); \
@@ -171,17 +168,6 @@ install-data: $(INSTALL_LANGUAGES)
                $(INSTALL_MAN) $$file $(DOCDIR)/images; \
        done
 
-install-languages:
-       for lang in $(LANGUAGES); do \
-               if test -d $$lang; then \
-                       $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
-                       $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
-                       $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
-               fi; \
-       done
-
-install-langbundle:
-
 
 #
 # Install programs...
@@ -208,7 +194,7 @@ install-libs:
 # Uninstall all documentation files...
 #
 
-uninstall: $(UNINSTALL_LANGUAGES)
+uninstall:
        for file in $(WEBPAGES); do \
                $(RM) $(DOCDIR)/$$file; \
        done
@@ -224,12 +210,3 @@ uninstall: $(UNINSTALL_LANGUAGES)
        -$(RMDIR) $(DOCDIR)/images
        -$(RMDIR) $(DOCDIR)/help
        -$(RMDIR) $(DOCDIR)
-
-uninstall-languages:
-       -for lang in $(LANGUAGES); do \
-               $(RM) $(DOCDIR)/$$lang/index.html; \
-               $(RM) $(DOCDIR)/$$lang/cups.css; \
-               $(RMDIR) $(DOCDIR)/$$lang; \
-       done
-
-install-langbundle:
index aa38ea401f95fe97abdd12f770f39b5a9e537b01..e32f8fb86a52f957df1e9ebd57053991d83c65de 100644 (file)
@@ -128,13 +128,11 @@ install:  all install-data install-headers install-libs install-exec
 # Install data files...
 #
 
-install-data: $(INSTALL_LANGUAGES)
+install-data:
        $(INSTALL_DIR) -m 755 $(DATADIR)/templates
        for file in $(FILES); do \
                $(INSTALL_DATA) $$file $(DATADIR)/templates; \
        done
-
-install-languages:
        for lang in $(LANGUAGES); do \
                if test -d $$lang; then \
                        $(INSTALL_DIR) -m 755 $(DATADIR)/templates/$$lang; \
@@ -144,8 +142,6 @@ install-languages:
                fi \
        done
 
-install-langbundle:
-
 
 #
 # Install programs...
@@ -172,18 +168,14 @@ install-libs:
 # Uninstall files...
 #
 
-uninstall: $(UNINSTALL_LANGUAGES)
+uninstall:
        for file in $(FILES); do \
                $(RM) $(DATADIR)/templates/$$file; \
        done
-       -$(RMDIR) $(DATADIR)/templates
-
-uninstall-languages:
        for lang in $(LANGUAGES); do \
                for file in $(FILES); do \
                        $(RM) $(DATADIR)/templates/$$lang/$$file; \
                done \
                $(RMDIR) $(DATADIR)/templates/$$lang; \
        done
-
-uninstall-langbundle:
+       -$(RMDIR) $(DATADIR)/templates