Debian Codegraph @

build/appveyor/winsparkle_appcast_generator.sh

raw symbols SCIP
1 # $1 - artifact name
2 # $2 - artifact ftp path
3 # $3 - MuseScore version
4 # $4 - Revision hash
5
6 export MSCORE_RELEASE_CHANNEL=$(grepscip-shell system . . grep. '^[[:blank:]]*set *( *MSCORE_RELEASE_CHANNEL' CMakeLists.txt | awkscip-shell system . . awk. -F \" '{print $2}')
7 RSS_DATE="$(LANG=C datescip-shell system . . date. +'%a, %d %b %Y %H:%M:%S %z')"
8 FILESIZE="$(wcscip-shell system . . wc. -c $1 | awkscip-shell system . . awk. '{print $1}')"
9 APPCAST_URL="https://sparkle.musescore.org/$MSCORE_RELEASE_CHANNEL/3/win/appcast.xml"
10 GIT_LOG=$(C:/MuseScore/build/travis/job_macos/generateGitLog.sh)
11
12 echoscip-shell system . . echo. ${MSCORE_RELEASE_CHANNEL} >> MSCORE_RELEASE_CHANNEL.txt
13
14 #use dummy values for now
15 echoscip-shell system . . echo. "<rss xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" version=\"2.0\">
16 <channel>
17 <title>MuseScore development channel</title>
18 <link>
19 ${APPCAST_URL}
20 </link>
21 <description>Most recent changes with links to updates.</description>
22 <language>en</language>
23 <item>
24 <title>MuseScore $3 $4</title>
25 <description>
26 <![CDATA[
27 ${GIT_LOG}
28 ]]>
29 </description>
30 <pubDate>${RSS_DATE}</pubDate>
31 <enclosure url=\"$2\" sparkle:version=\"$3\" length=\"${FILESIZE}\" type=\"application/octet-stream\"/>
32 </item>
33 </channel>
34 </rss>" >> appcast.xml