From: <de...@us...> - 2009-10-07 12:06:56
|
Revision: 1873 http://iterm.svn.sourceforge.net/iterm/?rev=1873&view=rev Author: delx Date: 2009-10-07 12:06:46 +0000 (Wed, 07 Oct 2009) Log Message: ----------- Updated website tools for publishing of stable releases Modified Paths: -------------- website/bin/publish_test.sh Added Paths: ----------- website/bin/appcast_final.xml website/bin/appcast_testing.xml website/bin/publish_final.sh Removed Paths: ------------- website/bin/appcast_template.xml Added: website/bin/appcast_final.xml =================================================================== --- website/bin/appcast_final.xml (rev 0) +++ website/bin/appcast_final.xml 2009-10-07 12:06:46 UTC (rev 1873) @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <title>iTerm Changelog</title> + <link>http://iterm.sourceforge.net/appcasts/b/final.xml</link> + <description>Stable releases with and bugfixes.</description> + <language>en</language> + <item> + <title>Version $APPCAST_VERSION</title> + <sparkle:releaseNotesLink> + http://iterm.sourceforge.net/appcasts/b/final_changes.html + </sparkle:releaseNotesLink> + <pubDate>$APPCAST_TIME</pubDate> + <enclosure url="$APPCAST_URL" + sparkle:version="$APPCAST_VERSION" length="$APPCAST_SIZE" type="application/octet-stream" + sparkle:dsaSignature="$APPCAST_SIGNATURE" /> + </item> + </channel> +</rss> Deleted: website/bin/appcast_template.xml =================================================================== --- website/bin/appcast_template.xml 2009-10-07 11:58:49 UTC (rev 1872) +++ website/bin/appcast_template.xml 2009-10-07 12:06:46 UTC (rev 1873) @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/"> - <channel> - <title>iTerm Changelog - Test releases</title> - <link>http://iterm.sourceforge.net/appcasts/b/testing.xml</link> - <description>Most recent changes with links to updates.</description> - <language>en</language> - <item> - <title>Version $APPCAST_VERSION</title> - <sparkle:releaseNotesLink> - http://iterm.sourceforge.net/appcasts/b/testing_changes.html - </sparkle:releaseNotesLink> - <pubDate>$APPCAST_TIME</pubDate> - <enclosure url="http://iterm.sourceforge.net/files/$APPCAST_RELEASE" - sparkle:version="$APPCAST_VERSION" length="$APPCAST_SIZE" type="application/octet-stream" - sparkle:dsaSignature="$APPCAST_SIGNATURE" /> - </item> - </channel> -</rss> Copied: website/bin/appcast_testing.xml (from rev 1860, website/bin/appcast_template.xml) =================================================================== --- website/bin/appcast_testing.xml (rev 0) +++ website/bin/appcast_testing.xml 2009-10-07 12:06:46 UTC (rev 1873) @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <title>iTerm Changelog - Test releases</title> + <link>http://iterm.sourceforge.net/appcasts/b/testing.xml</link> + <description>Most recent changes with links to updates.</description> + <language>en</language> + <item> + <title>Version $APPCAST_VERSION</title> + <sparkle:releaseNotesLink> + http://iterm.sourceforge.net/appcasts/b/testing_changes.html + </sparkle:releaseNotesLink> + <pubDate>$APPCAST_TIME</pubDate> + <enclosure url="$APPCAST_URL" + sparkle:version="$APPCAST_VERSION" length="$APPCAST_SIZE" type="application/octet-stream" + sparkle:dsaSignature="$APPCAST_SIGNATURE" /> + </item> + </channel> +</rss> Added: website/bin/publish_final.sh =================================================================== --- website/bin/publish_final.sh (rev 0) +++ website/bin/publish_final.sh 2009-10-07 12:06:46 UTC (rev 1873) @@ -0,0 +1,50 @@ +#!/bin/bash + +cd "$(dirname "$0")/.." + +if ! [ -d .keydir ]; then + echo "Please create a .keydir symlink to the directory containing your iTerm keys" + echo "It should have dsa_priv.pem, and sign_update.rb" + exit 1 +fi + +if ! [ -r "$1" ]; then + echo "Usage: $0 /path/to/iTerm_X.Y.Z.AAAAAAAA.zip" + echo " (use an absolute path)" + exit 1 +fi + +# Get parameters for template +export APPCAST_RELEASE="$(basename "$1")" +export APPCAST_TIME="$(date '+%a, %d %b %G %H:%M:%S %z')" +export APPCAST_VERSION="$(basename "$(echo "$APPCAST_RELEASE" | cut -d_ -f2)" .zip)" +export APPCAST_SIZE="$(stat -f '%z' "$1")" +export APPCAST_SIGNATURE="$(.keydir/sign_update.rb "$1" .keydir/dsa_priv.pem)" +export APPCAST_URL="http://downloads.sourceforge.net/iterm/$APPCAST_RELEASE" +set|grep APPCAST|grep -v "^_" +echo + +# Write out template +echo 'cat <<EOT' > tempfile +cat bin/appcast_final.xml >> tempfile +echo 'EOT' >> tempfile +bash tempfile > appcasts/b/final.xml +rm -f tempfile + +# Further instructions +cat <<EOT + + +What to do next? +---------------- + +1) $ Upload to Sourceforge files +2) Update appcasts/b/final_changes.html and appcasts/b/testing_changes.html +3) Update downloads.html +4) $ svn diff # check everything is ok +5) $ bin/upload.sh -n # check that it's output is sane +6) $ bin/upload.sh # push changes to webserver +7) $ svn commit +EOT + + Property changes on: website/bin/publish_final.sh ___________________________________________________________________ Added: svn:executable + * Modified: website/bin/publish_test.sh =================================================================== --- website/bin/publish_test.sh 2009-10-07 11:58:49 UTC (rev 1872) +++ website/bin/publish_test.sh 2009-10-07 12:06:46 UTC (rev 1873) @@ -20,12 +20,13 @@ export APPCAST_VERSION="$(basename "$(echo "$APPCAST_RELEASE" | cut -d_ -f2)" .zip)" export APPCAST_SIZE="$(stat -f '%z' "$1")" export APPCAST_SIGNATURE="$(.keydir/sign_update.rb "$1" .keydir/dsa_priv.pem)" +export APPCAST_URL="http://iterm.sourceforge.net/files/$APPCAST_RELEASE" set|grep APPCAST|grep -v "^_" echo # Write out template echo 'cat <<EOT' > tempfile -cat bin/appcast_template.xml >> tempfile +cat bin/appcast_testing.xml >> tempfile echo 'EOT' >> tempfile bash tempfile > appcasts/b/testing.xml rm -f tempfile This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |