Author: ritchiem
Date: Wed Oct 21 14:38:49 2009
New Revision: 828034
URL: http://svn.apache.org/viewvc?rev=828034&view=rev
Log:
Update to buildCreator to REVISIONS.txt. Includes URL for source. along with a
list of patches that have been applied for the patch entry.
Modified:
qpid/trunk/qpid/buildtools/buildCreator/buildCreator.py
Modified: qpid/trunk/qpid/buildtools/buildCreator/buildCreator.py
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/buildtools/buildCreator/buildCreator.py?rev=828034&r1=828033&r2=828034&view=diff
==============================================================================
--- qpid/trunk/qpid/buildtools/buildCreator/buildCreator.py (original)
+++ qpid/trunk/qpid/buildtools/buildCreator/buildCreator.py Wed Oct 21 14:38:49
2009
@@ -1012,9 +1012,14 @@
# 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 @@
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
+
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]