From 38fa8363e53f4d1664c908caf0252f8691a94c11 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Sat, 24 Jun 2023 16:39:53 +1000 Subject: [PATCH] change tar.gz or tgz to tar.xz --- git-cvs2git.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/git-cvs2git.sh b/git-cvs2git.sh index 3deeb7d..9bc5674 100755 --- a/git-cvs2git.sh +++ b/git-cvs2git.sh @@ -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