-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package_etw.bat to put version number in .zip files
The subject says it all.
- Loading branch information
1 parent
0814142
commit 8c93010
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import sys | ||
|
||
prefix = 'const float kCurrentVersion = ' | ||
|
||
version_header = sys.argv[1] | ||
for line in open(version_header).readlines(): | ||
if line.startswith(prefix): | ||
version = line[len(prefix) : len(prefix) + 4] | ||
print 'Renaming zip files to version "%s"' % version | ||
os.rename('etwpackage.zip', 'etwpackage%s.zip' % version) | ||
os.rename('etwsymbols.zip', 'etwsymbols%s.zip' % version) | ||
sys.exit(0) | ||
assert(0) |