Created
August 6, 2010 10:29
-
-
Save btotr/511151 to your computer and use it in GitHub Desktop.
cornerstone to basecamp
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
#!/bin/bash | |
/usr/bin/svn log "$1" --username foo --password foo --limit 1 -r HEAD --verbose --xml > /tmp/last.log | |
LOG=`xsltproc /Users/foo/log.xsl /tmp/last.log` | |
curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' \ | |
-u foo:X \ | |
-d "<request><post><category-id>45606922</category-id><title>svn commit</title><body>$LOG</body><extended-body>dit bericht is automatisch gegenereerd vanuit cornerstone</extended-body></post></request>" \ | |
https://foo.basecamphq.com/projects/foo/posts.xml |
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
<?xml version="1.0"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" omit-xml-declaration="yes" | |
encoding='UTF-8' indent="no" /> | |
<xsl:template match="/log/logentry"> | |
<xsl:value-of select="msg"/> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment