summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-10-21 14:38:49 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-10-21 14:38:49 +0000
commit4829457a04c70baf33b8afdc823b8a090bbdb523 (patch)
tree232fecee5284aaed901d95f5bc72e3e15a1b86e6 /buildtools
parent01e01d8f390bb42e0bee7562374a3a968c982a50 (diff)
downloadqpid-python-4829457a04c70baf33b8afdc823b8a090bbdb523.tar.gz
Update to buildCreator to REVISIONS.txt. Includes URL for source. along with a list of patches that have been applied for the patch entry.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@828034 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/buildCreator/buildCreator.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/buildtools/buildCreator/buildCreator.py b/buildtools/buildCreator/buildCreator.py
index 977a1d228a..4df7553dea 100755
--- a/buildtools/buildCreator/buildCreator.py
+++ b/buildtools/buildCreator/buildCreator.py
@@ -1012,9 +1012,14 @@ def createVersionSubstitution(build, filename):
# We can assume source is valid.
for s in sources:
if sourceDependency == getName(s):
+ # provide header <source>:<type>:<revision>
substitution += "\n " + ECHO_BIN + " -n '" + sourceDependency + ":" \
+ getType(s) + ":' >> " + filename
substitution += "\n" + getVersionCommand(s) + " >>" + filename
+ # Add Source URL to Revisions file
+ url = getValue(s.getElementsByTagName(URL)[0])
+ substitution += "\n" + ECHO_BIN + " \"URL:" + url + "\" >> "+filename
+ # Add Patches applied to this source to revisions file
substitution += addPatchVersions(s, filename)
return substitution
@@ -1053,8 +1058,22 @@ def addPatchVersions(source, filename):
getValue(patch.getElementsByTagName(PREFIX)[0]) + "\" >> " + filename
if (patch.getElementsByTagName(PATH).length > 0):
- substitution += "\n" + ECHO_BIN + " \"\t\tPREFIX: " + \
+ substitution += "\n" + ECHO_BIN + " \"\t\tPATH: " + \
getValue(patch.getElementsByTagName(PATH)[0]) + "\" >> " + filename
+
+ global _rootDir
+ patchSource= _rootDir + PATH_SEP + PATCH_DIR + PATH_SEP + getName(patch)
+
+ #
+ # Include the list of patches files applied
+ #
+ for root, dirs, files in os.walk(patchSource):
+ if '.svn' in dirs:
+ dirs.remove('.svn')
+ files.sort()
+ for patchName in files:
+ substitution += "\n" + ECHO_BIN + " \"\t\tFILE: " + patchName + "\" >> " + filename
+