D20166: Keep desktoptheme SVG files uncompressed in repo, install (stripped) svgz

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Mon Apr 1 13:33:22 BST 2019


kossebau added a comment.


  SVGZ -> SVG conversion of all files not included in this uploaded patch, to keep it reviewable.
  
  Locally do this:
  
  Store a file `svgztosvg.sh` with this content in `src/desktoptheme`:
  
    #!/bin/sh
    
    SVGZ=$1
    
    if [ ! -f "$SVGZ" ]; then
        echo "File not found: \"$SVGZ\""
        exit 1
    fi
    
    SVG=${SVGZ%.svgz}.svg
    
    zcat $SVGZ > $SVG
    rm $SVGZ
  
  Then on the commandline do this:
  
    cd plasma-framework/src/desktoptheme
    find . -name "*.svgz" -exec sh svgztosvg.sh {} \;
  
  Once done, do e.g. this to restore SVGZ files:
  
    find . -name "*.svg" -exec rm {} \;
    git checkout air breeze oxygen

REPOSITORY
  R242 Plasma Framework (Library)

REVISION DETAIL
  https://phabricator.kde.org/D20166

To: kossebau, #plasma, #vdg
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190401/2063d384/attachment.html>


More information about the Kde-frameworks-devel mailing list