From ec9f93f90a67b7bc30dd252f8880505c53a64441 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 14 Oct 2021 21:22:13 +0000 Subject: libreoffice: update gensrc.sh for 7.2.2 --- libreoffice/build/gensrc.sh | 8 +++--- libreoffice/build/gensrc_lo72.sh | 57 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 3 deletions(-) create mode 100755 libreoffice/build/gensrc_lo72.sh (limited to 'libreoffice/build') diff --git a/libreoffice/build/gensrc.sh b/libreoffice/build/gensrc.sh index 25cce411..5b8f4f4f 100755 --- a/libreoffice/build/gensrc.sh +++ b/libreoffice/build/gensrc.sh @@ -1,10 +1,12 @@ #!/bin/bash PRGNAM=libreoffice -VERSION=7.2.0 -SUBVER=.4 +VERSION=7.2.2 +SUBVER=.2 -STARTINDEX=6 +#STARTINDEX=6 +# Hopefully temporary, delete element '[5]' afterwards: +STARTINDEX=5 III=$STARTINDEX diff --git a/libreoffice/build/gensrc_lo72.sh b/libreoffice/build/gensrc_lo72.sh new file mode 100755 index 00000000..5b8f4f4f --- /dev/null +++ b/libreoffice/build/gensrc_lo72.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +PRGNAM=libreoffice +VERSION=7.2.2 +SUBVER=.2 + +#STARTINDEX=6 +# Hopefully temporary, delete element '[5]' afterwards: +STARTINDEX=5 + +III=$STARTINDEX + +echo "# --- Start of section generated by $(basename $0) ---" +echo "# External sources for $PRGNAM-$VERSION$SUBVER" +echo "" + +# Two temp files to store download data: +TMP_DLLST=$(mktemp -t lo_XXXXXX) +TMP_FETCH=$(mktemp -t lo_XXXXXX) + +# Download necessary data files: +wget --no-check-certificate -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/download.lst?id=$(echo $PRGNAM-$VERSION$SUBVER)" > $TMP_DLLST +wget --no-check-certificate -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/Makefile.fetch?id=$(echo $PRGNAM-$VERSION$SUBVER)" > $TMP_FETCH + +# Get the names of the tarballs we need: +eval $( wget --no-check-certificate -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/configure.ac?id=$(echo $PRGNAM-$VERSION$SUBVER)" | grep UNOWINREG_DLL= ) +eval $( wget --no-check-certificate -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/configure.ac?id=$(echo $PRGNAM-$VERSION$SUBVER)" | grep OPENSYMBOL_TTF= ) +echo "all:" >> $TMP_DLLST +cat $TMP_DLLST | grep -v " *#" | grep -w export | grep -E '(_TARBALL|_JAR)' | cut -f2 -d' ' | cut -f1 -d= | sed -e 's/.*/\t&=$(&)'/ >> $TMP_DLLST +eval $(make HAVE_JAVA6=TRUE -f $TMP_DLLST) + +# Find the download site for a given tarball: +find_url() { + cat $TMP_FETCH | sed -n "/$1/,/fetch_Download_item/s/^.*fetch_Download_item[^,]*,\([^,]*\),.*$/\1/p" +} + +for BALL in UNOWINREG_DLL OPENSYMBOL_TTF $( cat $TMP_DLLST | grep -v " *#" | grep -w export | grep -E '(_TARBALL|_JAR)' | cut -f2 -d' ' | cut -f1 -d= ); do + + SRCURL=$(find_url $BALL) + FILE=$(eval "echo \$$BALL") + + cat <