Skip to content

Commit

Permalink
uth: copy shell script to mxmp
Browse files Browse the repository at this point in the history
  • Loading branch information
punxaphil committed Oct 9, 2024
1 parent bf7290f commit fa23202
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions copy-to-maxi-media-player.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
rsync -av --exclude='copy-to-maxi-media-player.sh' --exclude='*.DS_Store' --exclude='coverage' --exclude='node_modules' --exclude='.git' --exclude='.idea' --exclude='dist' . ../maxi-media-player

find ../maxi-media-player -name "*" \
-not -path "*/.idea/*" \
-not -path "*/.git/*" \
-not -path "*/node_modules/*" \
-not -path "*/coverage/*" -type f \
-exec gsed -i '/\/\/#ONLY_SONOS_CARD_START/,/\/\/#ONLY_SONOS_CARD_END/d' {} \; \
-exec perl -i -pe 's/.*#ONLY_SONOS_CARD.*\n//' {} \; \
-exec sed -i '' -e "s/'sonos-card'/'maxi-media-player'/g" {} \; \
-exec sed -i '' -e "s/'Sonos'/'Maxi Media Player'/g" {} \; \
-exec sed -i '' -e 's/custom-sonos-card/maxi-media-player/g' {} \; \
-exec sed -i '' -e 's/custom:sonos-card/custom:maxi-media-player/g' {} \; \
-exec sed -i '' -e 's/raw\/master/raw\/main/g' {} \; \
-exec sed -i '' -e 's/sonos-card-/mxmp-/g' {} \; \
-exec sed -i '' -e 's/sonos-/mxmp-/g' {} \; \
-exec sed -i '' -e 's/sonos-card-dispatch/mxmp-dispatch/g' {} \; \
-exec sed -i '' -e 's/Sonos Card/Maxi Media Player/g' {} \; \
-exec sed -i '' -e 's/Media player for your Sonos speakers/Media card for Home Assistant UI with a focus on managing multiple media players/g' {} \;

0 comments on commit fa23202

Please sign in to comment.