forked from pool/doxygen
Petr Gajdos
b5c3fb06e7
OBS-URL: https://build.opensuse.org/request/show/452170 OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=112
16 lines
619 B
Diff
16 lines
619 B
Diff
--- src/res2cc_cmd.py_orig 2016-05-10 21:51:52.000000000 +0200
|
|
+++ src/res2cc_cmd.py 2017-01-23 23:54:53.499507342 +0100
|
|
@@ -98,10 +98,11 @@
|
|
directory = sys.argv[1]
|
|
files = []
|
|
for dirName, subdirList, fileList in walk(directory):
|
|
- for fname in sorted(fileList):
|
|
+ for fname in fileList:
|
|
subdir = dirName[len(directory)+1:] if dirName.startswith(directory) else dirName
|
|
if subdir:
|
|
files.append(File.factory(directory,subdir,fname))
|
|
+ files.sort(key=lambda f: f.subdir + "/" + f.fileName)
|
|
outputFile = open(sys.argv[2],"w")
|
|
print("#include \"resourcemgr.h\"\n",file=outputFile)
|
|
for f in files:
|