|
From: <de...@us...> - 2009-09-27 04:22:58
|
Revision: 1843
http://iterm.svn.sourceforge.net/iterm/?rev=1843&view=rev
Author: delx
Date: 2009-09-27 04:22:46 +0000 (Sun, 27 Sep 2009)
Log Message:
-----------
Semi automate test-release process
Added Paths:
-----------
website/bin/
website/bin/appcast_template.xml
website/bin/publish_test.sh
website/bin/upload.sh
Removed Paths:
-------------
website/upload.sh
Property Changed:
----------------
website/
Property changes on: website
___________________________________________________________________
Modified: svn:ignore
- .DS_Store
files
+ .DS_Store
files
.keydir
Added: website/bin/appcast_template.xml
===================================================================
--- website/bin/appcast_template.xml (rev 0)
+++ website/bin/appcast_template.xml 2009-09-27 04:22:46 UTC (rev 1843)
@@ -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="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>
Added: website/bin/publish_test.sh
===================================================================
--- website/bin/publish_test.sh (rev 0)
+++ website/bin/publish_test.sh 2009-09-27 04:22:46 UTC (rev 1843)
@@ -0,0 +1,51 @@
+#!/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)"
+set|grep APPCAST|grep -v "^_"
+echo
+
+# Write out template
+echo 'cat <<EOT' > tempfile
+cat bin/appcast_template.xml >> tempfile
+echo 'EOT' >> tempfile
+bash tempfile > appcasts/b/testing.xml
+rm -f tempfile
+
+# Copy the new release
+cp -v "$1" files/
+
+# Further instructions
+cat <<EOT
+
+
+What to do next?
+----------------
+
+1) Update appcasts/b/testing_changes.html
+2) Update downloads.html
+3) $ svn diff # check everything is ok
+4) $ bin/upload.sh -n # check that it's output is sane
+5) $ bin/upload.sh # push changes to webserver
+6) $ svn commit
+EOT
+
+
Property changes on: website/bin/publish_test.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: website/bin/upload.sh
===================================================================
--- website/bin/upload.sh (rev 0)
+++ website/bin/upload.sh 2009-09-27 04:22:46 UTC (rev 1843)
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+cd "$(dirname "$0")/.."
+chmod -R go+rX .
+
+rsync $1 -avz --delete \
+ --exclude bin \
+ --exclude .svn \
+ --exclude .DS_Store \
+ ./ iterm:htdocs/
+
Property changes on: website/bin/upload.sh
___________________________________________________________________
Added: svn:executable
+ *
Deleted: website/upload.sh
===================================================================
--- website/upload.sh 2009-09-27 03:19:06 UTC (rev 1842)
+++ website/upload.sh 2009-09-27 04:22:46 UTC (rev 1843)
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-cd "$(dirname "$0")"
-chmod -R go+rX .
-
-rsync -avz --delete \
- --exclude upload.sh \
- --exclude .svn \
- --exclude .DS_Store \
- ./ iterm:htdocs/
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|