Commit 81bacb14 authored by SVN-Git Migration's avatar SVN-Git Migration

Imported Upstream version 1.2.0

parent 803e4464
This is a Subversion working copy administrative directory.
Visit http://subversion.tigris.org/ for more information.
K 25
svn:wc:ra_dav:version-url
V 52
/repos/pysvn/!svn/ver/352/tags/pysvn/Extension/1.1.2
END
<?xml version="1.0" encoding="utf-8"?>
<wc-entries
xmlns="svn:">
<entry
committed-rev="352"
name=""
committed-date="2005-02-25T20:04:10.508684Z"
url="http://svn.collab.net/repos/pysvn/tags/pysvn/Extension/1.1.2"
last-author="barryscott"
kind="dir"
uuid="ffb681ed-3ace-0310-a391-af87744cd8be"
revision="356"/>
<entry
name="Source"
kind="dir"/>
<entry
committed-rev="69"
name="LICENSE.txt"
text-time="2005-02-27T21:55:14.000000Z"
committed-date="2004-02-22T22:02:50.038619Z"
checksum="3d612f6e1fb1bc4867d288086d0fcb6f"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
name="Tests"
kind="dir"/>
<entry
name="Builder"
kind="dir"/>
<entry
name="Kit"
kind="dir"/>
<entry
name="Patches"
kind="dir"/>
<entry
name="Docs"
kind="dir"/>
<entry
committed-rev="217"
name="INSTALL.html"
text-time="2005-02-27T21:55:14.000000Z"
committed-date="2004-10-13T22:51:02.013147Z"
checksum="2dce021544048b68fe1261ecc5f046a6"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:14.000000Z"/>
<entry
name="Examples"
kind="dir"/>
</wc-entries>
K 13
svn:eol-style
V 6
native
K 13
svn:mime-type
V 9
text/html
END
K 13
svn:eol-style
V 6
native
END
K 13
svn:eol-style
V 6
native
K 13
svn:mime-type
V 9
text/html
END
K 13
svn:eol-style
V 6
native
END
<html>
<head>
<title>Building pysvn Extension</title>
</head>
<body>
<h1>Building pysvn Extension</h1>
<h2>Prerequisites</h2>
<p>To build pysvn you will require:</p>
<ul>
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=3180">PyCXX V5.3.0</a>
<li><a href="http://subversion.tigris.org">subversion</a> 1.x.x</a>
</ul>
<h3>Building on win32</h3>
<p>These instructions assume you have Microsoft Visual C++ 6.0 to compile the code
and <a href="http://www.jrsoftware.org/">INNO</a> 4.0.10 to create the installation kit.</p>
<p>Note: you must build with MSVC6 as python 2.3 was built with that version.</p>
<p>MSVC 2003.NET is not expected to work until there is a version of python
built with VC++ 2003.NET released (issues of C runtime compatibility).</p>
<ol>
<li>build subversion (tested with 1.0.0 to 1.0.6 and 1.1.0)
<li>fetch and expand the pysvn source code into <i>extdir</i>
<li>Expand pycxx_5_3_0.tar.gz into <i>extdir</i>\Import
<li>edit Builder\builder_custom_init.cmd to match the locations of the sources.
<li>cd Builder
<li>builder_custom_init.cmd
<li>nmake -f win32.mak build
</ol>
<p>To install the built kit</p>
<ol>
<li>Uninstall any previous kit (control panel's Add/Remove programs)
<li>nmake -f win32.mak install
</ol>
<h3>Building on linux systems.</h3>
<ol>
<li>build subversion (tested with 1.0.0 to 1.0.6 and 1.1.0)
<li>get the pysvn source code
<li>tar xzf pycxx_5_3_0.tar.gz into <i>extdir</i>/Import
<li>edit Builder/builder_custom_init.sh to match the locations of the sources.
<li>cd Builder
<li>. builder_custom_init.sh
<li>make -f linux.mak build
</ol>
<p>To install the built rpm</p>
<ol>
<li>Use rpm -e to remove any previous kit
<li>make -f linux.mak install
</ol>
</body>
</html>
=================================================================
Copyright (C) 2003-2004 Barry A. Scott. All rights reserved.
=================================================================
The Apache Software License, Version 1.1
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
3. The end-user documentation included with the redistribution,
if any, must include the following acknowledgment:
"This product includes software developed by
Barry A. Scott http://www.barrys-emacs.org."
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.
4. The names "PySVN" must not be used to endorse or promote
products derived from this software without prior written
permission. For written permission, please contact
barry@barrys-emacs.org.
5. Products derived from this software may not be called "PySVN",
nor may "PySVN" appear in their name, without prior written
permission of Barry Scott.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
=================================================================
K 25
svn:wc:ra_dav:version-url
V 65
/repos/pysvn/!svn/ver/352/tags/pysvn/Extension/1.1.2/INSTALL.html
END
K 25
svn:wc:ra_dav:version-url
V 64
/repos/pysvn/!svn/ver/352/tags/pysvn/Extension/1.1.2/LICENSE.txt
END
This is a Subversion working copy administrative directory.
Visit http://subversion.tigris.org/ for more information.
K 25
svn:wc:ra_dav:version-url
V 60
/repos/pysvn/!svn/ver/352/tags/pysvn/Extension/1.1.2/Builder
END
<?xml version="1.0" encoding="utf-8"?>
<wc-entries
xmlns="svn:">
<entry
committed-rev="347"
name=""
committed-date="2005-02-20T17:26:17.985408Z"
url="http://svn.collab.net/repos/pysvn/tags/pysvn/Extension/1.1.2/Builder"
last-author="barryscott"
kind="dir"
uuid="ffb681ed-3ace-0310-a391-af87744cd8be"
revision="356"/>
<entry
committed-rev="336"
name="version.info"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2005-02-14T19:32:44.916079Z"
checksum="11d68953f3f4a39a0e64df1db81a1923"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
committed-rev="310"
name="macosx.mak"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2005-01-23T11:29:01.572590Z"
checksum="a2c7ebc09e5707a6b9807d2792e01eb6"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
committed-rev="347"
name="freebsd.mak"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2005-02-20T17:26:17.985408Z"
checksum="7ba3582beff0c66e467a435aab7ff703"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
committed-rev="230"
name="brand_version.py"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2004-10-21T13:07:19.366478Z"
checksum="493a906c1af428da85a6091d9e130a31"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
committed-rev="342"
name="win32-msvc60.mak"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2005-02-19T19:27:57.808635Z"
checksum="a2d213ebcba806396285176fcdbd6e27"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
committed-rev="284"
name="builder_custom_init.cmd"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2005-01-10T00:56:12.484359Z"
checksum="dec4ccaaea0d3f9cdfa075c168189d28"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
committed-rev="297"
name="linux.mak"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2005-01-16T23:47:26.966526Z"
checksum="c4d2b368b041bcce45bf857293f3fb1a"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
committed-rev="318"
name="win32-msvc71.mak"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2005-01-29T17:01:51.964271Z"
checksum="d1727d54cc80225331a0ec8b6f824efc"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
<entry
committed-rev="347"
name="builder_custom_init.sh"
text-time="2005-02-27T21:55:12.000000Z"
committed-date="2005-02-20T17:26:17.985408Z"
checksum="c029c7a348fcda358ace6ba2f9262c1e"
last-author="barryscott"
kind="file"
prop-time="2005-02-27T21:55:12.000000Z"/>
</wc-entries>
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
END
K 13
svn:eol-style
V 2
LF
K 14
svn:executable
V 1
*
END
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
END
K 13
svn:eol-style
V 2
LF
K 14
svn:executable
V 1
*
END
import sys
import os
import re
version_details = sys.argv[1]
input_filename = sys.argv[2]
output_filename = input_filename[:-len('.template')]
# create dictionary of branding strings
branding_info = {}
for line in file( version_details ):
line = line.strip()
if len(line) == 0:
continue
if line[0:1] == ['#']:
continue
key, value = [s.strip() for s in line.split('=',1)]
branding_info[ key ] = value
build_revision = os.popen( 'svnversion -c "%s" 2>&1' % os.environ.get( 'PYSVN_EXPORTED_FROM', '..' ), 'r' ).read().strip()
# build_revision is either a range nnn:mmm or mmm
# we only want the mmm
build_revision = build_revision.split(':')[-1]
print 'Info: revision %s' % build_revision
revision, modifiers = re.compile( '(\d+)(.*)' ).search( build_revision ).groups()
if modifiers:
branding_info['BUILD'] = '0'
else:
branding_info['BUILD'] = revision
# read all the input text
text = file( input_filename, 'r' ).read()
# and write of a branded version
file( output_filename, 'w' ).write( text % branding_info )
sys.exit(0)
@call "c:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"
@echo on
rem figure out where we are
for %%I in ( %0\..\.. ) do set WORKDIR=%%~fI
set PY_MAJ=2
if not "%1" == "" set PY_MAJ=%1
set PY_MIN=3
if not "%2" == "" set PY_MIN=%2
rem Save CWD
pushd .