summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-16 11:09:15 +0000
committerXisco Fauli <xiscofauli@libreoffice.org>2024-12-19 13:42:39 +0100
commitbbdbf32e64d13dfe2e0bc4fae8a5be7458b9dd65 (patch)
treec317bb0fd34b317e94851361ae495bd0ec49516e
parent30744bb44bbb565207fd8411e9f7ee05f0c724d7 (diff)
Reapply "add an autotext 'common' directory like templates/common"
This reverts commit 331bcad4dbe923f4ce47cfe1de64ea0ffbe5a6ce now there is a fix for the problem that triggered the revert. Change-Id: I4acacd51d5799e80dfa42a0433278e684d82a860 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178577 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins (cherry picked from commit 2388501ed81c4873d63f2f26505603ade06642d3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178792 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--Repository.mk1
-rw-r--r--extras/Module_extras.mk1
-rw-r--r--extras/Package_autotext.mk14
-rw-r--r--officecfg/registry/data/org/openoffice/Office/Paths.xcu1
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs1
5 files changed, 18 insertions, 0 deletions
diff --git a/Repository.mk b/Repository.mk
index fc2e071ccc26..e9f18f440826 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -960,6 +960,7 @@ $(eval $(call gb_Helper_register_packages_for_install,ooo,\
extensions_OOoSpotlightImporter \
) \
extras_autocorr \
+ extras_autotext \
extras_autotextuser \
extras_cfgsrvnolang \
extras_cfgusr \
diff --git a/extras/Module_extras.mk b/extras/Module_extras.mk
index f78c226cd401..717436fed25d 100644
--- a/extras/Module_extras.mk
+++ b/extras/Module_extras.mk
@@ -16,6 +16,7 @@ $(eval $(call gb_Module_add_targets,extras,\
CustomTarget_gallsystem \
CustomTarget_templates \
Package_autocorr \
+ Package_autotext \
Package_autotextuser \
Package_cfgsrvnolang \
Package_cfgusr \
diff --git a/extras/Package_autotext.mk b/extras/Package_autotext.mk
new file mode 100644
index 000000000000..d5b5c6471fc8
--- /dev/null
+++ b/extras/Package_autotext.mk
@@ -0,0 +1,14 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,extras_autotext,$(gb_CustomTarget_workdir)/extras/source/autotext))
+
+$(eval $(call gb_Package_add_empty_directory,extras_autotext,$(LIBO_SHARE_FOLDER)/autotext/common))
+
+# vim: set noet sw=4 ts=4:
diff --git a/officecfg/registry/data/org/openoffice/Office/Paths.xcu b/officecfg/registry/data/org/openoffice/Office/Paths.xcu
index b5b304b8f362..fa25191be2a4 100644
--- a/officecfg/registry/data/org/openoffice/Office/Paths.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/Paths.xcu
@@ -34,6 +34,7 @@
</node>
<node oor:name="AutoText" oor:op="fuse" oor:mandatory="true">
<node oor:name="InternalPaths">
+ <node oor:name="$(insturl)/@LIBO_SHARE_FOLDER@/autotext/common" oor:op="fuse"/>
<node oor:name="$(insturl)/@LIBO_SHARE_FOLDER@/autotext/$(vlang)" oor:op="fuse"/>
</node>
<prop oor:name="WritePath">
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 9727f9ad85ae..3848a9ca314f 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -1377,6 +1377,7 @@
</info>
<value>
<it>$(insturl)/@LIBO_SHARE_FOLDER@/autotext/$(vlang)</it>
+ <it>$(insturl)/@LIBO_SHARE_FOLDER@/autotext/common</it>
<it>$(userurl)/autotext</it>
</value>
</prop>