Mercurial > hg > orthanc-webviewer
comparison Resources/SyncOrthancFolder.py @ 23:7a0af291cc90
Synchronization with Orthanc mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 01 Jun 2015 11:52:28 +0200 |
parents | |
children | 15acbf5e7545 |
comparison
equal
deleted
inserted
replaced
22:b42eeb4bd1e3 | 23:7a0af291cc90 |
---|---|
1 #!/usr/bin/python | |
2 | |
3 # | |
4 # This maintenance script updates the content of the "Orthanc" folder | |
5 # to match the latest version of the Orthanc source code. | |
6 # | |
7 | |
8 import os | |
9 import shutil | |
10 | |
11 SOURCE = '/home/jodogne/Subversion/Orthanc/Core' | |
12 TARGET = os.path.join(os.path.dirname(__file__), '..', 'Orthanc') | |
13 | |
14 FILES = [ | |
15 'ChunkedBuffer.cpp', | |
16 'ChunkedBuffer.h', | |
17 'Enumerations.cpp', | |
18 'Enumerations.h', | |
19 'FileStorage/FilesystemStorage.cpp', | |
20 'FileStorage/FilesystemStorage.h', | |
21 'FileStorage/IStorageArea.h', | |
22 'IDynamicObject.h', | |
23 'ImageFormats/ImageAccessor.cpp', | |
24 'ImageFormats/ImageAccessor.h', | |
25 'ImageFormats/ImageBuffer.cpp', | |
26 'ImageFormats/ImageBuffer.h', | |
27 'ImageFormats/ImageProcessing.cpp', | |
28 'ImageFormats/ImageProcessing.h', | |
29 'ImageFormats/PngWriter.cpp', | |
30 'ImageFormats/PngWriter.h', | |
31 'MultiThreading/SharedMessageQueue.cpp', | |
32 'MultiThreading/SharedMessageQueue.h', | |
33 'OrthancException.cpp', | |
34 'OrthancException.h', | |
35 'PrecompiledHeaders.cpp', | |
36 'PrecompiledHeaders.h', | |
37 'SQLite/Connection.cpp', | |
38 'SQLite/Connection.h', | |
39 'SQLite/FunctionContext.cpp', | |
40 'SQLite/FunctionContext.h', | |
41 'SQLite/IScalarFunction.h', | |
42 'SQLite/ITransaction.h', | |
43 'SQLite/NonCopyable.h', | |
44 'SQLite/OrthancSQLiteException.h', | |
45 'SQLite/Statement.cpp', | |
46 'SQLite/Statement.h', | |
47 'SQLite/StatementId.cpp', | |
48 'SQLite/StatementId.h', | |
49 'SQLite/StatementReference.cpp', | |
50 'SQLite/StatementReference.h', | |
51 'SQLite/Transaction.cpp', | |
52 'SQLite/Transaction.h', | |
53 'Toolbox.cpp', | |
54 'Toolbox.h', | |
55 'Uuid.cpp', | |
56 'Uuid.h', | |
57 ] | |
58 | |
59 for f in FILES: | |
60 source = os.path.join(SOURCE, f) | |
61 target = os.path.join(TARGET, f) | |
62 try: | |
63 os.makedirs(os.path.dirname(target)) | |
64 except: | |
65 pass | |
66 | |
67 shutil.copy(source, target) |