changeset 129:5133cfc8db86

fix standalone build
author jodogne
date Sat, 06 Oct 2012 16:19:37 +0200
parents 2a24f43d9dca
children b09b0ffd9941
files OrthancExplorer/images/Unsupported.png OrthancExplorer/images/unsupported.png OrthancServer/OrthancRestApi.cpp Resources/EmbedResources.py
diffstat 4 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
Binary file OrthancExplorer/images/Unsupported.png has changed
Binary file OrthancExplorer/images/unsupported.png has changed
--- a/OrthancServer/OrthancRestApi.cpp	Fri Oct 05 17:49:50 2012 +0200
+++ b/OrthancServer/OrthancRestApi.cpp	Sat Oct 06 16:19:37 2012 +0200
@@ -661,7 +661,7 @@
             root += "../";
           }
 
-          output.Redirect(root + "app/images/Unsupported.png");
+          output.Redirect(root + "app/images/unsupported.png");
           return;
         }
       }
--- a/Resources/EmbedResources.py	Fri Oct 05 17:49:50 2012 +0200
+++ b/Resources/EmbedResources.py	Sat Oct 06 16:19:37 2012 +0200
@@ -2,6 +2,7 @@
 import os
 import os.path
 import pprint
+import re
 
 if len(sys.argv) < 2 or len(sys.argv) % 2 != 0:
     print ('Usage:')
@@ -20,6 +21,10 @@
 ## Read each resource file
 #####################################################################
 
+def CheckNoUpcase(s):
+    if re.search('[A-Z]', s) != None:
+        raise Exception("Path in a directory with an upcase letter: %s" % s)
+
 resources = {}
 
 counter = 0
@@ -42,10 +47,11 @@
             for f in files:
                 if f.find('~') == -1:  # Ignore Emacs backup files
                     if base == '.':
-                        r = f.lower()
+                        r = f
                     else:
-                        r = os.path.join(base, f).lower()
+                        r = os.path.join(base, f)
 
+                    CheckNoUpcase(r)
                     r = '/' + r.replace('\\', '/')
                     if r in content:
                         raise Exception("Twice the same filename (check case): " + r)