Revision: 18154
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18154&view=rev
Author:   hofman
Date:     2011-10-02 08:59:25 +0000 (Sun, 02 Oct 2011)
Log Message:
-----------
use new URL format for appcast download URL

Modified Paths:
--------------
    trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj

Modified: trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj
===================================================================
--- trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj     2011-10-02 06:35:31 UTC 
(rev 18153)
+++ trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj     2011-10-02 08:59:25 UTC 
(rev 18154)
@@ -3444,7 +3444,7 @@
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                        shellPath = /bin/bash;
-                       shellScript = "####\n##\n## If you feel an undying urge 
to improve this,\n## discuss it with the poor slob that does the\n## releases 
first (and test it thoroughly)!\n##\n####\n\n# app name, also image 
name\nNAME=BibDesk\n\n# app bundle to 
copy\nSRC_BUNDLE=\"${BUILT_PRODUCTS_DIR}/${NAME}.app\"\n\n# template image in 
source folder\nSRC_IMAGE=\"${SOURCE_ROOT}/${NAME}.dmg\"\n\n# temporary 
image\nDST_IMAGE=\"/tmp/${NAME}.dmg\"\n\n# temporary 
volume\nDST_VOLUME=\"/Volumes/${NAME}\"\n\n# 
version\nVERSION=$(/usr/bin/defaults read \"${SRC_BUNDLE}/Contents/Info\" 
CFBundleShortVersionString)\n\n# final distribution 
image\nFINAL_IMAGE=\"${HOME}/Desktop/${NAME}-${VERSION}.dmg\"\n\n# see if this 
file already exists and bail\nif [ -f \"${FINAL_IMAGE}\" ]; then\n\techo 
\"error: ${FINAL_IMAGE} exists\"\n\texit 1\nfi\n\n# see if a volume is already 
mounted or a\n# previous cp operation was botched\nif [ -e \"${DST_VOLUME}\" ]; 
then\n\techo \"error: ${DST_VOLUME} exists\"\n\techo \"warning: opening 
${DST_VOLUME} in Finder\"\n\t/usr/bin/open \"${DST_VOLUME}\"\n\texit 1\nfi\n\n# 
remove temp image from a previous run\nif [ -f ${DST_IMAGE} ]; then\n\techo 
\"warning: removing ${DST_IMAGE}\"\n\t/bin/rm ${DST_IMAGE}\n\tif [ $? != 0 ]; 
then\n\t\techo \"error: failed to remove ${DST_IMAGE}\"\n\t\texit 
1\n\tfi\nfi\n\n# stored zipped in svn, so unzip if needed\n# pass o to 
overwrite, or unzip waits for stdin\n# when trying to unpack the resource 
fork/EA\n\nif [ ! -f \"${SRC_IMAGE}\" ]; then\n\techo \"Unzipping disk image 
${SRC_IMAGE}.zip\"\n\t/usr/bin/unzip -uo \"${SRC_IMAGE}.zip\"\n\tif [ $? != 0 
]; then\n\t\techo \"error: failed to unzip ${SRC_IMAGE}.zip\"\n\t\texit 
1\n\tfi\nfi\n\n# copy empty image to /tmp\necho \"Copying disk image 
${SRC_IMAGE} to ${DST_IMAGE}\"\n/bin/cp \"${SRC_IMAGE}\" \"${DST_IMAGE}\"\nif [ 
$? != 0 ]; then\n\techo \"error: failed to copy ${SRC_IMAGE} to 
${DST_IMAGE}\"\n\texit 1\nfi\n\n# mount image and use CpMac to copy all 
files\necho \"Mounting disk image ${DST_IMAGE}\"\n/usr/bin/hdiutil attach 
-nobrowse -noautoopen \"${DST_IMAGE}\"\nif [ $? != 0 ]; then\n\techo \"error: 
failed to mount ${DST_IMAGE}\"\n\texit 1\nfi\n\n# use CpMac to copy all 
files\necho \"Copying build product from ${SRC_BUNDLE} to 
${DST_VOLUME}\"\n${SYSTEM_DEVELOPER_TOOLS}/CpMac -r \"${SRC_BUNDLE}\" 
\"${DST_VOLUME}\"\nif [ $? != 0 ]; then\n\techo \"error: failed to copy 
${SRC_BUNDLE}\"\n\texit 1\nfi\n\n# tell finder to set the icon position\necho 
\"Moving build product in disk image\"\n/usr/bin/osascript -e \"tell 
application \\\"Finder\\\" to set the position of application file 
\\\"${NAME}.app\\\" of the disk named \\\"${NAME}\\\" to {204, 148}\"\nif [ $? 
!= 0 ]; then\n\techo \"error: Finder failed to set position\"\n\texit 
1\nfi\n\n# data is copied, so unmount the volume, we may need to wait when the 
volume is in use\necho \"Ejecting disk image 
${DST_VOLUME}\"\nN_TRIES=0\n/usr/sbin/diskutil eject \"${DST_VOLUME}\"\nwhile [ 
$? != 0 ]; do\n\tif [ $((++N_TRIES)) -gt 12 ]; then\n\t\techo \"error: failed 
to eject ${DST_VOLUME}\"\n\t\texit 1\n\telse\n\t\tsleep 
5\n\t\t/usr/sbin/diskutil eject \"${DST_VOLUME}\"\n\tfi\ndone\n\n# convert 
image to read only and compress\necho \"Converting disk image ${DST_IMAGE} to 
read only disk image at ${FINAL_IMAGE}\"\n/usr/bin/hdiutil convert 
\"${DST_IMAGE}\" -format UDZO -imagekey zlib-level=9 -o \"${FINAL_IMAGE}\"\nif 
[ $? != 0 ]; then\n\techo \"error: failed to convert ${DST_IMAGE}\"\n\texit 
1\nfi\n\n# set internet-enable bit for Safari, even\n# though I dislike 
internet-enabled images...\necho \"Internet-enable disk image 
${FINAL_IMAGE}\"\n/usr/bin/hdiutil internet-enable -YES \"${FINAL_IMAGE}\"\nif 
[ $? != 0 ]; then\n\techo \"error: failed to internet-enable 
${DST_IMAGE}\"\n\texit 1\nfi\n\n# remove temp image and source image\necho 
\"Removing temporary disk images ${DST_IMAGE} and ${SRC_IMAGE}\"\n/bin/rm -f 
\"${DST_IMAGE}\" \"${SRC_IMAGE}\"\nif [ $? != 0 ]; then\n\techo \"warning: 
failed to remove ${DST_IMAGE} or ${SRC_IMAGE}\"\nfi\n\n# create the Sparkle 
appcast\n# see 
http://www.entropy.ch/blog/Developer/2008/09/22/Sparkle-Appcast-Automation-in-Xcode.html\n\necho
 \"Creating appcast for Sparkle...\"\n\nDATE=$(/bin/date +\"%a, %d %b %Y %T 
%z\")\nSIZE=$(/usr/bin/stat -f %z 
\"${FINAL_IMAGE}\")\nVERSION_NUMBER=$(/usr/bin/defaults read 
\"${SRC_BUNDLE}/Contents/Info\" 
CFBundleVersion)\nURL=\"http://downloads.sourceforge.net/bibdesk/${NAME}-${VERSION}.dmg\"\nAPPCAST=\"${HOME}/Desktop/${NAME}-${VERSION}.xml\"\nKEY_NAME=\"${NAME}
 Sparkle Key\"\nSIGNATURE=$(/usr/bin/openssl dgst -sha1 -binary < 
\"${FINAL_IMAGE}\" | /usr/bin/openssl dgst -dss1 -sign <(security 
find-generic-password -g -s \"${KEY_NAME}\" 2>&1 1>/dev/null | perl -pe '($_) = 
/\"(.+)\"/; s/\\\\012/\\n/g') | /usr/bin/openssl enc -base64)\nif [ $? != 0 ]; 
then\n\techo \"warning: failed to generate signature.  You need the private key 
in a secure note named \\\"${KEY_NAME}\\\"\" >&2\nfi\n\n/bin/cat > 
\"${APPCAST}\" << EOF\n<?xml version=\"1.0\" encoding=\"utf-8\"?> \n<rss 
version=\"2.0\" 
xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\";  
xmlns:dc=\"http://purl.org/dc/elements/1.1/\";>\n    <channel> \n        
<title>${NAME} Changelog</title>\n        
<link>http://bibdesk.sourceforge.net</link>\n        <description>BibTeX 
bibliography manager</description>\n        <item>\n            <title>Version 
${VERSION}</title>\n            <description><![CDATA[\n<h1>Version 
${VERSION}</h1>\n\n<h2>New Features</h2>\n<ul>\n<li></li>\n</ul>\n\n<h2>Bugs 
Fixed</h2>\n<ul>\n<li></li>\n</ul>\n\t\t\t]]></description>\n            
<pubDate>${DATE}</pubDate>\n            
<sparkle:minimumSystemVersion>10.5.0</sparkle:minimumSystemVersion>\n           
 <enclosure sparkle:version=\"${VERSION_NUMBER}\" 
sparkle:shortVersionString=\"${VERSION}\" url=\"${URL}\" 
sparkle:dsaSignature=\"${SIGNATURE}\" length=\"${SIZE}\" 
type=\"application/x-apple-diskimage\"/>\n        </item>\n\n    
</channel>\n</rss>\nEOF\n\nexit 0\n";
+                       shellScript = "####\n##\n## If you feel an undying urge 
to improve this,\n## discuss it with the poor slob that does the\n## releases 
first (and test it thoroughly)!\n##\n####\n\n# app name, also image 
name\nNAME=BibDesk\n\n# app bundle to 
copy\nSRC_BUNDLE=\"${BUILT_PRODUCTS_DIR}/${NAME}.app\"\n\n# template image in 
source folder\nSRC_IMAGE=\"${SOURCE_ROOT}/${NAME}.dmg\"\n\n# temporary 
image\nDST_IMAGE=\"/tmp/${NAME}.dmg\"\n\n# temporary 
volume\nDST_VOLUME=\"/Volumes/${NAME}\"\n\n# 
version\nVERSION=$(/usr/bin/defaults read \"${SRC_BUNDLE}/Contents/Info\" 
CFBundleShortVersionString)\n\n# final distribution 
image\nFINAL_IMAGE=\"${HOME}/Desktop/${NAME}-${VERSION}.dmg\"\n\n# see if this 
file already exists and bail\nif [ -f \"${FINAL_IMAGE}\" ]; then\n\techo 
\"error: ${FINAL_IMAGE} exists\"\n\texit 1\nfi\n\n# see if a volume is already 
mounted or a\n# previous cp operation was botched\nif [ -e \"${DST_VOLUME}\" ]; 
then\n\techo \"error: ${DST_VOLUME} exists\"\n\techo \"warning: opening 
${DST_VOLUME} in Finder\"\n\t/usr/bin/open \"${DST_VOLUME}\"\n\texit 1\nfi\n\n# 
remove temp image from a previous run\nif [ -f ${DST_IMAGE} ]; then\n\techo 
\"warning: removing ${DST_IMAGE}\"\n\t/bin/rm ${DST_IMAGE}\n\tif [ $? != 0 ]; 
then\n\t\techo \"error: failed to remove ${DST_IMAGE}\"\n\t\texit 
1\n\tfi\nfi\n\n# stored zipped in svn, so unzip if needed\n# pass o to 
overwrite, or unzip waits for stdin\n# when trying to unpack the resource 
fork/EA\n\nif [ ! -f \"${SRC_IMAGE}\" ]; then\n\techo \"Unzipping disk image 
${SRC_IMAGE}.zip\"\n\t/usr/bin/unzip -uo \"${SRC_IMAGE}.zip\"\n\tif [ $? != 0 
]; then\n\t\techo \"error: failed to unzip ${SRC_IMAGE}.zip\"\n\t\texit 
1\n\tfi\nfi\n\n# copy empty image to /tmp\necho \"Copying disk image 
${SRC_IMAGE} to ${DST_IMAGE}\"\n/bin/cp \"${SRC_IMAGE}\" \"${DST_IMAGE}\"\nif [ 
$? != 0 ]; then\n\techo \"error: failed to copy ${SRC_IMAGE} to 
${DST_IMAGE}\"\n\texit 1\nfi\n\n# mount image and use CpMac to copy all 
files\necho \"Mounting disk image ${DST_IMAGE}\"\n/usr/bin/hdiutil attach 
-nobrowse -noautoopen \"${DST_IMAGE}\"\nif [ $? != 0 ]; then\n\techo \"error: 
failed to mount ${DST_IMAGE}\"\n\texit 1\nfi\n\n# use CpMac to copy all 
files\necho \"Copying build product from ${SRC_BUNDLE} to 
${DST_VOLUME}\"\n${SYSTEM_DEVELOPER_TOOLS}/CpMac -r \"${SRC_BUNDLE}\" 
\"${DST_VOLUME}\"\nif [ $? != 0 ]; then\n\techo \"error: failed to copy 
${SRC_BUNDLE}\"\n\texit 1\nfi\n\n# tell finder to set the icon position\necho 
\"Moving build product in disk image\"\n/usr/bin/osascript -e \"tell 
application \\\"Finder\\\" to set the position of application file 
\\\"${NAME}.app\\\" of the disk named \\\"${NAME}\\\" to {204, 148}\"\nif [ $? 
!= 0 ]; then\n\techo \"error: Finder failed to set position\"\n\texit 
1\nfi\n\n# data is copied, so unmount the volume, we may need to wait when the 
volume is in use\necho \"Ejecting disk image 
${DST_VOLUME}\"\nN_TRIES=0\n/usr/sbin/diskutil eject \"${DST_VOLUME}\"\nwhile [ 
$? != 0 ]; do\n\tif [ $((++N_TRIES)) -gt 12 ]; then\n\t\techo \"error: failed 
to eject ${DST_VOLUME}\"\n\t\texit 1\n\telse\n\t\tsleep 
5\n\t\t/usr/sbin/diskutil eject \"${DST_VOLUME}\"\n\tfi\ndone\n\n# convert 
image to read only and compress\necho \"Converting disk image ${DST_IMAGE} to 
read only disk image at ${FINAL_IMAGE}\"\n/usr/bin/hdiutil convert 
\"${DST_IMAGE}\" -format UDZO -imagekey zlib-level=9 -o \"${FINAL_IMAGE}\"\nif 
[ $? != 0 ]; then\n\techo \"error: failed to convert ${DST_IMAGE}\"\n\texit 
1\nfi\n\n# set internet-enable bit for Safari, even\n# though I dislike 
internet-enabled images...\necho \"Internet-enable disk image 
${FINAL_IMAGE}\"\n/usr/bin/hdiutil internet-enable -YES \"${FINAL_IMAGE}\"\nif 
[ $? != 0 ]; then\n\techo \"error: failed to internet-enable 
${DST_IMAGE}\"\n\texit 1\nfi\n\n# remove temp image and source image\necho 
\"Removing temporary disk images ${DST_IMAGE} and ${SRC_IMAGE}\"\n/bin/rm -f 
\"${DST_IMAGE}\" \"${SRC_IMAGE}\"\nif [ $? != 0 ]; then\n\techo \"warning: 
failed to remove ${DST_IMAGE} or ${SRC_IMAGE}\"\nfi\n\n# create the Sparkle 
appcast\n# see 
http://www.entropy.ch/blog/Developer/2008/09/22/Sparkle-Appcast-Automation-in-Xcode.html\n\necho
 \"Creating appcast for Sparkle...\"\n\nDATE=$(/bin/date +\"%a, %d %b %Y %T 
%z\")\nSIZE=$(/usr/bin/stat -f %z 
\"${FINAL_IMAGE}\")\nVERSION_NUMBER=$(/usr/bin/defaults read 
\"${SRC_BUNDLE}/Contents/Info\" 
CFBundleVersion)\nURL=\"http://sourceforge.net/projects/bibdesk/files/${NAME}/${NAME}-${VERSION}/${NAME}-${VERSION}.dmg/download\"\nAPPCAST=\"${HOME}/Desktop/${NAME}-${VERSION}.xml\"\nKEY_NAME=\"${NAME}
 Sparkle Key\"\nSIGNATURE=$(/usr/bin/openssl dgst -sha1 -binary < 
\"${FINAL_IMAGE}\" | /usr/bin/openssl dgst -dss1 -sign <(security 
find-generic-password -g -s \"${KEY_NAME}\" 2>&1 1>/dev/null | perl -pe '($_) = 
/\"(.+)\"/; s/\\\\012/\\n/g') | /usr/bin/openssl enc -base64)\nif [ $? != 0 ]; 
then\n\techo \"warning: failed to generate signature.  You need the private key 
in a secure note named \\\"${KEY_NAME}\\\"\" >&2\nfi\n\n/bin/cat > 
\"${APPCAST}\" << EOF\n<?xml version=\"1.0\" encoding=\"utf-8\"?> \n<rss 
version=\"2.0\" 
xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\";  
xmlns:dc=\"http://purl.org/dc/elements/1.1/\";>\n    <channel> \n        
<title>${NAME} Changelog</title>\n        
<link>http://bibdesk.sourceforge.net</link>\n        <description>BibTeX 
bibliography manager</description>\n        <item>\n            <title>Version 
${VERSION}</title>\n            <description><![CDATA[\n<h1>Version 
${VERSION}</h1>\n\n<h2>New Features</h2>\n<ul>\n<li></li>\n</ul>\n\n<h2>Bugs 
Fixed</h2>\n<ul>\n<li></li>\n</ul>\n\t\t\t]]></description>\n            
<pubDate>${DATE}</pubDate>\n            
<sparkle:minimumSystemVersion>10.5.0</sparkle:minimumSystemVersion>\n           
 <enclosure sparkle:version=\"${VERSION_NUMBER}\" 
sparkle:shortVersionString=\"${VERSION}\" url=\"${URL}\" 
sparkle:dsaSignature=\"${SIGNATURE}\" length=\"${SIZE}\" 
type=\"application/x-apple-diskimage\"/>\n        </item>\n\n    
</channel>\n</rss>\nEOF\n\nexit 0\n";
                };
                F9E0B071083E450C000109C6 /* Run Script: Genstrings */ = {
                        isa = PBXShellScriptBuildPhase;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to