change tar.gz or tgz to tar.xz

This commit is contained in:
Trevor Batley 2023-06-24 16:39:53 +10:00
parent b7188cbf4b
commit 38fa8363e5

View File

@ -512,9 +512,9 @@ else
fi
cd $GITFiles/$1
if [[ $ARCHIVEFILE != "$TREEPATH.tar.gz" ]] ; then
echo "$ARCHIVEFILE" > archivefilename
fi
#if [[ $ARCHIVEFILE != "$TREEPATH.tar.gz" ]] ; then
# echo "$ARCHIVEFILE" > archivefilename
#fi
# Take out any bogus dates:
/usr/bin/BogusDateBot.sh $(basename $SPECFILE)
@ -524,6 +524,8 @@ if [[ "$NAME" =~ ^(smeserver-|e-smith-).* ]]; then
# Now edit the spec file to remove all those patches and adjust the paths
sed -i '/^Patch/d; /^%patch/d' $(basename $SPECFILE)
# no paths need adjusting at this time!
# - change Source: to new standard of tar.xz
sed -i '/^Source:/s/tar.gz/tar.xz/;s/tgz/tar.xz/' $(basename $SPECFILE)
# Bump the release and add changelog
change-log $(basename $SPECFILE)
# and edit in the reason