{"id":839345,"date":"2008-08-21T11:53:49","date_gmt":"2008-08-21T11:53:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/automatic-subversion-update\/"},"modified":"2016-08-19T01:59:50","modified_gmt":"2016-08-19T01:59:50","slug":"automatic-subversion-update","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/automatic-subversion-update\/","title":{"rendered":"Automatic subversion update"},"content":{"rendered":"<p>Hi folks, <\/p>\n<p>i put all wordpress installations in one sub-directory for easy updating and every night a cron job is running executing this little script:<\/p>\n<pre><code>for filename in .\/*\ndo\nif [ ${filename:(-4):99} != &quot;.txt&quot; ]; then\n  svn up $filename\/\nfi\n\ndone;<\/code><\/pre>\n<p>(there are some txt files i have to ignore thats why the if statement exists)<\/p>\n<p>When a new stable release is coming i run this script:<\/p>\n<pre><code>for filename in .\/*\ndo\nif [ ${filename:(-4):99} != &quot;.txt&quot; ]; then\n  svn sw http:\/\/svn.automattic.com\/wordpress\/tags\/2.6.1\/ $filename\/\nfi\ndone;<\/code><\/pre>\n<p>Now thats nice but i&#8217;m a lazy one and love dry (don&#8217;t repeat yourself). So every time a new stable release is coming i don&#8217;t won&#8217;t to update my switch script. <\/p>\n<p>How can the script get to know that a new version is available? (There must be a function in wordpress but i didn&#8217;t found it.)<\/p>\n<p>Does wordpress also warns for plugin incompatibility?<\/p>\n<p>Did anybody did something similar or do you know any improvements?<\/p>\n<p>regards Volkan<\/p>\n","protected":false},"template":"","class_list":["post-839345","topic","type-topic","status-closed","hentry","topic-tag-bash","topic-tag-subversion"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/839345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/839345\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=839345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}