3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 # Part of solenv/bin/assemble-flatpak.sh that is shared with a downstream mechanism of building a
11 # Flatpak from a Fedora libreoffice.spec file.
14 # $1 pathname, ending in a slash, of the directory containing the source libreoffice-*.appdata.xml
16 # $2 pathname, ending in a slash, of the directory containing the target
17 # org.libreoffice.LibreOffice.appdata.xml file
21 # append the appdata for the different components
22 for i
in "${1?}"libreoffice-
*.appdata.xml
24 sed "1 d; s/<id>libreoffice-/<id>org.libreoffice.LibreOffice./" "$i" \
25 >>"${2?}"org.libreoffice.LibreOffice.appdata.xml