comparison Resources/SyncOrthancFolder.py @ 3:d5027f9f676a

fix build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 01 Jun 2015 15:12:22 +0200
parents
children 1fb480a156fd
comparison
equal deleted inserted replaced
2:8f22ed9d48d5 3:d5027f9f676a
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'
12 TARGET = os.path.join(os.path.dirname(__file__), '..', 'Orthanc')
13
14 FILES = [
15 'Core/ChunkedBuffer.cpp',
16 'Core/ChunkedBuffer.h',
17 'Core/Enumerations.cpp',
18 'Core/HttpClient.cpp',
19 'Core/HttpClient.h',
20 'Core/ICommand.h',
21 'Core/IDynamicObject.h',
22 'Core/ImageFormats/ImageAccessor.cpp',
23 'Core/ImageFormats/ImageAccessor.h',
24 'Core/ImageFormats/PngReader.cpp',
25 'Core/ImageFormats/PngReader.h',
26 'Core/MultiThreading/SharedMessageQueue.cpp',
27 'Core/MultiThreading/SharedMessageQueue.h',
28 'Core/OrthancException.cpp',
29 'Core/OrthancException.h',
30 'Core/PrecompiledHeaders.h',
31 'Core/Toolbox.cpp',
32 'Core/Toolbox.h',
33 'Resources/CMake/BoostConfiguration.cmake',
34 'Resources/CMake/Compiler.cmake',
35 'Resources/CMake/DownloadPackage.cmake',
36 'Resources/CMake/JsonCppConfiguration.cmake',
37 'Resources/CMake/LibCurlConfiguration.cmake',
38 'Resources/CMake/LibPngConfiguration.cmake',
39 'Resources/CMake/OpenSslConfiguration.cmake',
40 'Resources/CMake/Uninstall.cmake.in',
41 'Resources/CMake/ZlibConfiguration.cmake',
42 'Resources/OrthancLogoDocumentation.png',
43 'Resources/ThirdParty/base64/base64.cpp',
44 'Resources/ThirdParty/base64/base64.h',
45 'Resources/ThirdParty/md5/md5.c',
46 'Resources/ThirdParty/md5/md5.h',
47 'Resources/ThirdParty/minizip/NOTES',
48 'Resources/ThirdParty/minizip/crypt.h',
49 'Resources/ThirdParty/minizip/ioapi.c',
50 'Resources/ThirdParty/minizip/ioapi.h',
51 'Resources/ThirdParty/minizip/zip.c',
52 'Resources/ThirdParty/minizip/zip.h',
53 'Core/Enumerations.h',
54 ]
55
56 for f in FILES:
57 source = os.path.join(SOURCE, f)
58 target = os.path.join(TARGET, f)
59 try:
60 os.makedirs(os.path.dirname(target))
61 except:
62 pass
63
64 shutil.copy(source, target)