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 fi
cd $GITFiles/$1 cd $GITFiles/$1
if [[ $ARCHIVEFILE != "$TREEPATH.tar.gz" ]] ; then #if [[ $ARCHIVEFILE != "$TREEPATH.tar.gz" ]] ; then
echo "$ARCHIVEFILE" > archivefilename # echo "$ARCHIVEFILE" > archivefilename
fi #fi
# Take out any bogus dates: # Take out any bogus dates:
/usr/bin/BogusDateBot.sh $(basename $SPECFILE) /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 # Now edit the spec file to remove all those patches and adjust the paths
sed -i '/^Patch/d; /^%patch/d' $(basename $SPECFILE) sed -i '/^Patch/d; /^%patch/d' $(basename $SPECFILE)
# no paths need adjusting at this time! # 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 # Bump the release and add changelog
change-log $(basename $SPECFILE) change-log $(basename $SPECFILE)
# and edit in the reason # and edit in the reason