[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:42:11 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=f253dff
The following commit has been merged in the master branch:
commit f253dff8d76fd36b0cdfb9113ceb9317ae952f41
Author: Robin Mills <robin at clanmills.com>
Date: Tue Jan 4 05:28:14 2011 +0000
msvc64: adding missing file
---
msvc64/runner.py | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 116 insertions(+)
diff --git a/msvc64/runner.py b/msvc64/runner.py
new file mode 100644
index 0000000..d81baf6
--- /dev/null
+++ b/msvc64/runner.py
@@ -0,0 +1,116 @@
+#!/usr/bin/env python
+# -*- coding: Latin-1 -*-
+
+##
+def syntax():
+ print "syntax: python runner.py Win32|x64|all"
+##
+
+r"""runner.py - run some tests on the exiv2 build"""
+
+##
+import sys
+import os.path
+
+##
+def Q(path):
+ return '"' + path + '"'
+##
+
+##
+def exe(path,option):
+ """exe - handle a .exe file"""
+
+# print "testing ",path
+
+ testimages=os.path.realpath('testimages')
+ tif=os.path.join(testimages,'test.tiff')
+ png=os.path.join(testimages,'test.png')
+ jpg=os.path.join(testimages,'test.jpg')
+
+ os.system(path + " -V")
+ os.system(path + " -pt "+Q(tif) + '2>NUL | grep Original')
+ os.system(path + " -pt "+Q(png) + '2>NUL | grep Original')
+ os.system(path + " -pt "+Q(jpg) + '2>NUL | grep Original')
+ os.system(path + " -pt "+Q(jpg) )
+##
+
+##
+def dll(path,option):
+ """dll - handle a .dll file"""
+
+# print "testing ",path
+
+ bits=32 if path.find('Win32')>=0 else 64
+
+ depends='tools/bin/depends%d.exe' % (bits)
+ depends=os.path.realpath( depends )
+ os.system(depends + ' -q ' + path + ' | sort')
+##
+
+##
+def visit(myData, directoryName, filesInDirectory): # called for each dir
+ """visit - called by os.path.walk"""
+ # print "in visitor",directoryName, "myData = ",myData
+ # print "filesInDirectory => ",filesInDirectory
+ for filename in filesInDirectory: # do non-dir files here
+ pathname = os.path.join(directoryName, filename)
+ if not os.path.isdir(pathname):
+ global paths
+ paths.append(pathname)
+##
+
+##
+def handle(paths,handlers):
+ for path in sorted(paths):
+ ext=os.path.splitext(path)[1].lower()
+ if handlers.has_key(ext):
+ handlers[ext](path,option)
+##
+
+##
+def runner(option):
+ """runner -option == None, means both x64 and Win32"""
+ if option in set(['x64','Win32',None]):
+ directory = os.path.abspath(os.path.dirname(sys.argv[0]))
+ directory = os.path.join(directory,"bin")
+ if option:
+ directory = os.path.join(directory,option)
+
+ print "directory = ",directory
+ global paths
+
+ paths=[]
+ os.path.walk(directory, visit, None)
+ handle(paths,{ '.exe' : exe } )
+ handle(paths,{ '.dll' : dll } )
+ handle(paths,{ '.exe' : dll } )
+ else:
+ syntax()
+##
+
+##
+if __name__ == '__main__':
+
+ argc = len(sys.argv)
+ syntaxError = argc < 2
+
+ if not syntaxError:
+ option='all'
+ if argc>1:
+ option=sys.argv[1].lower()
+ options = { 'x64' : 'x64'
+ , 'x86' : 'Win32'
+ , 'win32' : 'Win32'
+ , 'all' : None
+ , 'both' : None
+ }
+ syntaxError = not options.has_key(option)
+ if not syntaxError:
+ runner(options[option])
+
+ if syntaxError:
+ syntax()
+
+# That's all Folks!
+##
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list