Mercurial > hg > orthanc-client
view Resources/SyncOrthancFolder.py @ 8:6d59828e2662
removal of Orthanc namespace
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jun 2015 10:55:32 +0200 |
parents | d5027f9f676a |
children | 1fb480a156fd |
line wrap: on
line source
#!/usr/bin/python # # This maintenance script updates the content of the "Orthanc" folder # to match the latest version of the Orthanc source code. # import os import shutil SOURCE = '/home/jodogne/Subversion/Orthanc' TARGET = os.path.join(os.path.dirname(__file__), '..', 'Orthanc') FILES = [ 'Core/ChunkedBuffer.cpp', 'Core/ChunkedBuffer.h', 'Core/Enumerations.cpp', 'Core/HttpClient.cpp', 'Core/HttpClient.h', 'Core/ICommand.h', 'Core/IDynamicObject.h', 'Core/ImageFormats/ImageAccessor.cpp', 'Core/ImageFormats/ImageAccessor.h', 'Core/ImageFormats/PngReader.cpp', 'Core/ImageFormats/PngReader.h', 'Core/MultiThreading/SharedMessageQueue.cpp', 'Core/MultiThreading/SharedMessageQueue.h', 'Core/OrthancException.cpp', 'Core/OrthancException.h', 'Core/PrecompiledHeaders.h', 'Core/Toolbox.cpp', 'Core/Toolbox.h', 'Resources/CMake/BoostConfiguration.cmake', 'Resources/CMake/Compiler.cmake', 'Resources/CMake/DownloadPackage.cmake', 'Resources/CMake/JsonCppConfiguration.cmake', 'Resources/CMake/LibCurlConfiguration.cmake', 'Resources/CMake/LibPngConfiguration.cmake', 'Resources/CMake/OpenSslConfiguration.cmake', 'Resources/CMake/Uninstall.cmake.in', 'Resources/CMake/ZlibConfiguration.cmake', 'Resources/OrthancLogoDocumentation.png', 'Resources/ThirdParty/base64/base64.cpp', 'Resources/ThirdParty/base64/base64.h', 'Resources/ThirdParty/md5/md5.c', 'Resources/ThirdParty/md5/md5.h', 'Resources/ThirdParty/minizip/NOTES', 'Resources/ThirdParty/minizip/crypt.h', 'Resources/ThirdParty/minizip/ioapi.c', 'Resources/ThirdParty/minizip/ioapi.h', 'Resources/ThirdParty/minizip/zip.c', 'Resources/ThirdParty/minizip/zip.h', 'Core/Enumerations.h', ] for f in FILES: source = os.path.join(SOURCE, f) target = os.path.join(TARGET, f) try: os.makedirs(os.path.dirname(target)) except: pass shutil.copy(source, target)