Index: tools/create_sdk.py |
=================================================================== |
--- tools/create_sdk.py (revision 6627) |
+++ tools/create_sdk.py (working copy) |
@@ -425,6 +425,15 @@ |
import_dst = join(LIB, 'config', 'import_' + platform + '.config') |
copyfile(import_src, import_dst); |
+ # Write the 'revision' file |
+ revision = utils.GetSVNRevision() |
+ if revision is None: |
+ sys.stderr.write('Unable to find SVN revision.\n') |
+ return 1 |
dgrove
2012/04/18 20:53:05
how does this work for git users? (that's the reas
danrubel
2012/04/18 21:31:39
Ah! Revised. PTAL.
upload_sdk will still catch if
|
+ with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
+ f.write(revision + '\n') |
+ f.close() |
+ |
move(SDK_tmp, SDK) |
if __name__ == '__main__': |