| Revision 146,
350 bytes
checked in by jon, 4 years ago
(diff) |
|
Adding branch for ims integration
|
| Line | |
|---|
| 1 | # Quick and dirty script to replace all instances of $$version$$ with the version number. |
|---|
| 2 | |
|---|
| 3 | import sys |
|---|
| 4 | import string |
|---|
| 5 | |
|---|
| 6 | f = open('../../version.txt', 'r') |
|---|
| 7 | ver = f.readline()[:-1] |
|---|
| 8 | f.close() |
|---|
| 9 | |
|---|
| 10 | f = open(sys.argv[1], 'r') |
|---|
| 11 | ft = f.read() |
|---|
| 12 | f.close() |
|---|
| 13 | |
|---|
| 14 | nft = string.replace(ft, '$$version$$', ver) |
|---|
| 15 | |
|---|
| 16 | f = open(sys.argv[1], 'w') |
|---|
| 17 | f.write(nft) |
|---|
| 18 | f.close() |
|---|
| 19 | |
|---|
| 20 | print 'Done.' |
|---|
Note: See
TracBrowser
for help on using the repository browser.