forked from DBuit/custom-sonos-card
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' {} \; |