Mark some Calc slots as inactive in readonly mode
[LibreOffice.git] / solenv / bin / generate-flatpak-manifest.sh
blob2e0f8e3141ef796a0dbcaa589deab7c164687e65
1 #!/bin/bash
3 # usage:
4 # make -s cmd cmd='${SRCDIR}/solenv/bin/generate-flatpak-manifest.sh master' > org.libreoffice.LibreOffice.json
6 set -euo pipefail
8 # convert FOO := BAR$(MICRO) to export FOO=BAR$MICRO
9 source <(sed -e's#\([^ ]\{1,\}\) := #export \1=#g' ${SRCDIR}/download.lst | sed -e 's#[)(]##g')
11 my_gitbranch="${1?}"
12 subst="-e s!@BRANCH@!${my_gitbranch?}!"
14 subst="${subst} $(
15 < ${SRCDIR}/solenv/flatpak-manifest.in \
16 sed ${subst} | \
17 grep -o '@[A-Z0-9_]*@' | while read var; do
18 temp=${var:1:-1}
19 echo -n " -e s/${var}/${!temp}/"
20 done
23 exec sed ${subst} < "${SRCDIR}"/solenv/flatpak-manifest.in