diff options
author | Steven Knight <knight@baldmt.com> | 2003-03-26 19:39:45 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-03-26 19:39:45 (GMT) |
commit | d988db5277489ab02b9499d5c4f76636f54d2ed5 (patch) | |
tree | c1b8c39fb661b0d56fef7a0c48c45e75e848facb | |
parent | 95a4d924e02d940a8960e28be71056dab84deb9f (diff) | |
download | SCons-d988db5277489ab02b9499d5c4f76636f54d2ed5.zip SCons-d988db5277489ab02b9499d5c4f76636f54d2ed5.tar.gz SCons-d988db5277489ab02b9499d5c4f76636f54d2ed5.tar.bz2 |
Clean-ups in preparation for release: doc and comment changes, comment out Subversion support.
-rw-r--r-- | doc/man/scons.1 | 102 | ||||
-rw-r--r-- | src/CHANGES.txt | 7 | ||||
-rw-r--r-- | src/engine/SCons/Defaults.py | 2 | ||||
-rw-r--r-- | src/engine/SCons/Tool/__init__.py | 3 | ||||
-rw-r--r-- | test/Subversion.py | 3 |
5 files changed, 62 insertions, 55 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1 index 6ac9ebc..5da2c94 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -1769,47 +1769,47 @@ env.SourceCode('.', env.BitKeeper('/usr/local/BKsources')) env.SourceCode('src', env.CVS('/usr/local/CVSROOT')) env.SourceCode('/', env.RCS()) env.SourceCode(['f1.c', 'f2.c'], env.SCCS()) -env.SourceCode('.', env.Subversion('file:///usr/local/Subversion')) env.SourceCode('no_source.c', None) .EE - -.TP -.RI Subversion( repository ", " module ) -A factory function that -returns a Builder object -to be used to fetch source files -from the specified Subversion -.IR repository . -The returned Builder -is intended to be passed to the -.B SourceCode -function. - -The optional specified -.I module -will be added to the beginning -of all repository path names; -this can be used, in essence, -to strip initial directory names -from the repository path names, -so that you only have to -replicate part of the repository -directory hierarchy in your -local build directory: - -.ES -# Will fetch foo/bar/src.c -# from /usr/local/Subversion/foo/bar/src.c. -env.SourceCode('.', env.Subversion('file:///usr/local/Subversion')) - -# Will fetch bar/src.c -# from /usr/local/Subversion/foo/bar/src.c. -env.SourceCode('.', env.Subversion('file:///usr/local/Subversion', 'foo')) - -# Will fetch src.c -# from /usr/local/Subversion/foo/bar/src.c. -env.SourceCode('.', env.Subversion('file:///usr/local/Subversion', 'foo/bar')) -.EE +'\"env.SourceCode('.', env.Subversion('file:///usr/local/Subversion')) +'\" +'\".TP +'\".RI Subversion( repository ", " module ) +'\"A factory function that +'\"returns a Builder object +'\"to be used to fetch source files +'\"from the specified Subversion +'\".IR repository . +'\"The returned Builder +'\"is intended to be passed to the +'\".B SourceCode +'\"function. +'\" +'\"The optional specified +'\".I module +'\"will be added to the beginning +'\"of all repository path names; +'\"this can be used, in essence, +'\"to strip initial directory names +'\"from the repository path names, +'\"so that you only have to +'\"replicate part of the repository +'\"directory hierarchy in your +'\"local build directory: +'\" +'\".ES +'\"# Will fetch foo/bar/src.c +'\"# from /usr/local/Subversion/foo/bar/src.c. +'\"env.SourceCode('.', env.Subversion('file:///usr/local/Subversion')) +'\" +'\"# Will fetch bar/src.c +'\"# from /usr/local/Subversion/foo/bar/src.c. +'\"env.SourceCode('.', env.Subversion('file:///usr/local/Subversion', 'foo')) +'\" +'\"# Will fetch src.c +'\"# from /usr/local/Subversion/foo/bar/src.c. +'\"env.SourceCode('.', env.Subversion('file:///usr/local/Subversion', 'foo/bar')) +'\".EE .SS Construction Variables .\" XXX From Gary Ruben, 23 April 2002: @@ -2614,17 +2614,17 @@ is that arguments to the command. .I env is a dictionary of the environment variables in which the command should be executed. - -.IP SVN -The Subversion executable (usually named -.BR svn ). - -.IP SVNCOM -The command line used to -fetch source files from a Subversion repository. - -.IP SVNFLAGS -General options that are passed to Subversion. +'\" +'\".IP SVN +'\"The Subversion executable (usually named +'\".BR svn ). +'\" +'\".IP SVNCOM +'\"The command line used to +'\"fetch source files from a Subversion repository. +'\" +'\".IP SVNFLAGS +'\"General options that are passed to Subversion. .IP TAR The tar archiver. @@ -3986,7 +3986,7 @@ into the expanded string: def foo(target, source, env): return "bar" -# Will expand to $BAR to "bar baz" +# Will expand $BAR to "bar baz" env=Environment(FOO=foo, BAR="$FOO baz") .EE diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 017c872..ddfe712 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -35,8 +35,8 @@ RELEASE 0.12 - XXX - Add an Environment.SourceCode() method to support fetching files from source code systems. Add factory methods that create Builders - to support BitKeeper, CVS, RCS, SCCS and Subversion. Add support - for fetching files from RCS or SCCS transparently (like GNU Make). + to support BitKeeper, CVS, RCS, and SCCS. Add support for fetching + files from RCS or SCCS transparently (like GNU Make). - Make the internal to_String() function more efficient. @@ -83,6 +83,9 @@ RELEASE 0.12 - XXX - Fix an exception thrown when the -U option was used with no Default() target specified. + - Fix -u so that it builds things in corresponding build directories + when used in a source directory. + From Lachlan O'Dea: - Add SharedObject() support to the masm tool. diff --git a/src/engine/SCons/Defaults.py b/src/engine/SCons/Defaults.py index 07a388e..6fa053d 100644 --- a/src/engine/SCons/Defaults.py +++ b/src/engine/SCons/Defaults.py @@ -201,7 +201,7 @@ def copyFunc(dest, source, env): def _concat(prefix, list, suffix, env, f=lambda x: x): """Creates a new list from 'list' by first interpolating each - element in the list using 'locals' and 'globals' and then calling f + element in the list using the 'env' dictionary and then calling f on the list, and finally concatenating 'prefix' and 'suffix' onto each element of the list. A trailing space on 'prefix' or leading space on 'suffix' will cause them to be put into seperate list diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py index a5db5bf..5eed7f1 100644 --- a/src/engine/SCons/Tool/__init__.py +++ b/src/engine/SCons/Tool/__init__.py @@ -204,7 +204,8 @@ def tool_list(platform, env): 'dvipdf', 'dvips', 'latex', 'lex', 'pdflatex', 'pdftex', 'Perforce', - 'RCS', 'SCCS', 'Subversion', + 'RCS', 'SCCS', + # 'Subversion', 'tar', 'tex', 'yacc', 'zip'], env) diff --git a/test/Subversion.py b/test/Subversion.py index 6dc7d53..54e9942 100644 --- a/test/Subversion.py +++ b/test/Subversion.py @@ -42,6 +42,9 @@ if not svn: print "Could not find Subversion, skipping test(s)." test.pass_test(1) +print "Short-circuiting this test until we support Subversion" +test.pass_test() + test.subdir('Subversion', 'import', ['import', 'sub'], 'work1', 'work2') # Set up the Subversion repository. |