From edaebb65d92a48d7075c8c1f64c5ffd87054827b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:07:31 +0200 Subject: Adding debian version 4:7.4.7-1+deb12u1. Signed-off-by: Daniel Baumann --- debian/scripts/fix_component_tarballs.sh | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 debian/scripts/fix_component_tarballs.sh (limited to 'debian/scripts/fix_component_tarballs.sh') diff --git a/debian/scripts/fix_component_tarballs.sh b/debian/scripts/fix_component_tarballs.sh new file mode 100755 index 000000000..be149f297 --- /dev/null +++ b/debian/scripts/fix_component_tarballs.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +set -x +set -e + +pwd=`pwd` +tmp=`mktemp -q -d` + +debianver=`uscan --report --verbose | grep newversion | cut -d= -f2 | awk '{ print $1 }' | head -n 1` + +# the main tarball +t=`uscan --report --verbose | grep newfile | cut -d= -f2 | head -n 1` +sourcever=`echo $t | cut -d- -f2 | sed -e "s/\.tar\.xz$//"` + +files=`uscan --report --verbose | grep newfile | cut -d= -f2 | tail -n +2` + +for f in $files; do + if echo $f | grep -q help; then + c=helpcontent2; + else + c=`echo $f | cut -d- -f2`; + fi + + cd ${tmp} + echo "Extracting original $f..." + tar --strip-components 1 --extract --verbose --xz --file ${pwd}/../$f + echo "Deleting obsolete libreoffice_${debianver}.orig-${c}.tar.xz and it's signatiure...." + rm -f ${pwd}/../libreoffice_${debianver}.orig-${c}.tar.xz + rm -f ${pwd}/../libreoffice_${debianver}.orig-${c}.tar.xz.asc + echo "Creating new libreoffice_${debianver}.orig-${c}.tar.xz..." + tar --create --verbose --xz --file ${pwd}/../libreoffice_${debianver}.orig-${c}.tar.xz ${c} + rm -rf ${c} + cd ${pwd} +done + +rm -rf ${tmp} -- cgit v1.2.3