Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FC338E7A for ; Wed, 10 Aug 2011 18:01:53 +0000 (UTC) Received: (qmail 19048 invoked by uid 500); 10 Aug 2011 18:01:52 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 18594 invoked by uid 500); 10 Aug 2011 18:01:51 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 18483 invoked by uid 99); 10 Aug 2011 18:01:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 18:01:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 18:01:50 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 015B823888CE for ; Wed, 10 Aug 2011 18:01:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1156281 - /subversion/trunk/tools/dist/release.py Date: Wed, 10 Aug 2011 18:01:30 -0000 To: commits@subversion.apache.org From: hwright@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110810180131.015B823888CE@eris.apache.org> Author: hwright Date: Wed Aug 10 18:01:30 2011 New Revision: 1156281 URL: http://svn.apache.org/viewvc?rev=1156281&view=rev Log: New 'move-to-dist' subcommand for release.py. * tools/dist/release.py (move_to_dist): New. (main): Add the new subcommand and its arguments. Modified: subversion/trunk/tools/dist/release.py Modified: subversion/trunk/tools/dist/release.py URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1156281&r1=1156280&r2=1156281&view=diff ============================================================================== --- subversion/trunk/tools/dist/release.py (original) +++ subversion/trunk/tools/dist/release.py Wed Aug 10 18:01:30 2011 @@ -513,6 +513,35 @@ def clean_dist(args): #---------------------------------------------------------------------- +# Move to dist + +def move_to_dist(args): + 'Move candidate artifacts to the distribution directory.' + + if not args.dist_dir: + assert_people() + args.dist_dir = people_dist_dir + + if args.target: + target = args.target + else: + target = os.path.join(os.getenv('HOME'), 'public_html', 'svn', + str(args.version), 'deploy') + + if args.code_name: + dirname = args.code_name + else: + dirname = 'deploy' + + logging.info('Moving %s to dist dir \'%s\'' % (str(args.version), + args.dist_dir) ) + filenames = glob.glob(os.path.join(target, + 'subversion-%s.*' % str(args.version))) + for filename in filenames: + shutil.move(filename, args.dist_dir) + + +#---------------------------------------------------------------------- # Write announcements def write_news(args): @@ -695,6 +724,24 @@ def main(): subparser.add_argument('--dist-dir', help='''The directory to clean.''') + # The move-to-dist subcommand + subparser = subparsers.add_parser('move-to-dist', + help='''Move candiates and signatures from the temporary + post location to the permanent distribution + directory. If no dist-dir is given, this command + will assume it is running on people.apache.org.''') + subparser.set_defaults(func=move_to_dist) + subparser.add_argument('version', type=Version, + help='''The release label, such as '1.7.0-alpha1'.''') + subparser.add_argument('--dist-dir', + help='''The directory to clean.''') + subparser.add_argument('--code-name', + help='''A whimsical name for the release, used only for + naming the download directory.''') + subparser.add_argument('--target', + help='''The full path to the destination used in + 'post-candiates'..''') + # The write-news subcommand subparser = subparsers.add_parser('write-news', help='''Output to stdout template text for use in the news