c5f620f9f6
Duplication of external tarballs in flatpak-manifest.in is a maintenance nightmare. The only difference between the current flatpak-manifest.in and the one generated from: make -s cmd cmd='${SRCDIR}/solenv/bin/generate-flatpak-manifest.sh master' > org.libreoffice.LibreOffice.json ... is that the current one contains an outdated reference to zxing-cpp-1.1.1.tar.gz which was upgraded to zxing-cpp-1.2.0.tar.gz in download.lst. Change-Id: I98ab9346244f2c0d788da391928fcb4ffebbe23f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124891 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
20 lines
487 B
Bash
Executable file
20 lines
487 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# usage:
|
|
# make -s cmd cmd='${SRCDIR}/solenv/bin/generate-flatpak-manifest.sh master' > org.libreoffice.LibreOffice.json
|
|
|
|
set -euo pipefail
|
|
|
|
my_gitbranch="${1?}"
|
|
subst="-e s!@BRANCH@!${my_gitbranch?}!"
|
|
|
|
subst="${subst} $(
|
|
< ${SRCDIR}/solenv/flatpak-manifest.in \
|
|
sed ${subst} | \
|
|
grep -o '@[A-Z0-9_]*@' | while read var; do
|
|
temp=${var:1:-1}
|
|
echo -n " -e s/${var}/${!temp}/"
|
|
done
|
|
)"
|
|
|
|
exec sed ${subst} < "${SRCDIR}"/solenv/flatpak-manifest.in
|