summaryrefslogtreecommitdiff
path: root/build/windows/update-scripts
blob: 8f353447b914e940e0e0cac0a18c115ffefa5b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

cd ../..

echo "REM This is a generated file, do not edit manually
"> build/windows/post-build.bat

echo "REM This file is called/ran after Banshee.Core.dll is built, see src/Core/Banshee.Core/Banshee.Core.csproj
">> build/windows/post-build.bat

# Find all ThemeIcon PNGs and produce a Windows BAT script
# to move them into bin/share/icon/hicolor, creating
# all necessary directories
find src/ -name *.png | \
    grep ThemeIcon | \
    sed 's!/!\\!g' | \
    sed -r 's!^(.*)ThemeIcons((.*)\\.*\.png)$!000GBmkdir DEST\3\ncopy /Y "\0" DEST\2!' | \
    sed 's!DEST!bin\\share\\icons\\hicolor!g' | \
    sort | uniq | \
    sed 's!000GB!!' >> build/windows/post-build.bat

echo "mkdir bin\share\icons\hicolor\16x16\apps
mkdir bin\share\icons\hicolor\192x192\apps
mkdir bin\share\icons\hicolor\22x22\apps
mkdir bin\share\icons\hicolor\24x24\apps
mkdir bin\share\icons\hicolor\32x32\apps
mkdir bin\share\icons\hicolor\48x48\apps
copy /Y data\icon-theme-hicolor\media-player-banshee-16.png bin\share\icons\hicolor\16x16\apps\media-player-banshee.png
copy /Y data\icon-theme-hicolor\media-player-banshee-192.png bin\share\icons\hicolor\192x192\apps\media-player-banshee.png
copy /Y data\icon-theme-hicolor\media-player-banshee-22.png bin\share\icons\hicolor\22x22\apps\media-player-banshee.png
copy /Y data\icon-theme-hicolor\media-player-banshee-24.png bin\share\icons\hicolor\24x24\apps\media-player-banshee.png
copy /Y data\icon-theme-hicolor\media-player-banshee-32.png bin\share\icons\hicolor\32x32\apps\media-player-banshee.png
copy /Y data\icon-theme-hicolor\media-player-banshee-48.png bin\share\icons\hicolor\48x48\apps\media-player-banshee.png" >> build/windows/post-build.bat