svn: /web/php-rmtools/trunk/client/script/ snap.php

From: Date: Mon, 25 Apr 2011 12:53:13 +0000
Subject: svn: /web/php-rmtools/trunk/client/script/ snap.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10876@lists.php.net to get a copy of this message
pajoye Mon, 25 Apr 2011 12:53:13 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=310474 Log: - use short name here Changed paths: U web/php-rmtools/trunk/client/script/snap.php Modified: web/php-rmtools/trunk/client/script/snap.php =================================================================== --- web/php-rmtools/trunk/client/script/snap.php 2011-04-25 12:45:35 UTC (rev 310473) +++ web/php-rmtools/trunk/client/script/snap.php 2011-04-25 12:53:13 UTC (rev 310474) @@ -19,6 +19,7 @@ $branch->update(); $branch_name = $branch->config->getName(); +$branch_name_short = $branch->config->getBranch(); if ($force || $branch->hasNewRevision()) { $last_rev = $branch->getLastRevisionId(); @@ -66,13 +67,13 @@ } if ($build->archive_path) { - copy($build->archive_path, $toupload_dir . '/php-' . $branch_name . '-' . $build_name . '-r'. $last_rev . '.zip'); + copy($build->archive_path, $toupload_dir . '/php-' . $branch_name_short . '-' . $build_name . '-r'. $last_rev . '.zip'); } if ($build->archive_path) { - copy($build->devel_path, $toupload_dir . '/php-devel-pack-' . $branch_name . '-' . $build_name . '-r'. $last_rev . '.zip'); + copy($build->devel_path, $toupload_dir . '/php-devel-pack-' . $branch_name_short . '-' . $build_name . '-r'. $last_rev . '.zip'); } if ($build->archive_path) { - copy($build->debug_path, $toupload_dir . '/php-debug-pack-' . $branch_name . '-' . $build_name . '-r'. $last_rev . '.zip'); + copy($build->debug_path, $toupload_dir . '/php-debug-pack-' . $branch_name_short . '-' . $build_name . '-r'. $last_rev . '.zip'); } file_put_contents($toupload_dir . '/logs/buildconf-' . $build_name . '-r'. $last_rev . '.txt', $build->log_buildconf);

« previous php.webmaster (#10876) next »