From 8777a9672ecaf308d974a9c36f6edab6ee65bf4b Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 21 Jun 2009 19:33:35 +0000 Subject: Add Makefile for building CAB files, dependency calculation. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1607 --- pkg/wince/wince-cabgen | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'pkg/wince/wince-cabgen') diff --git a/pkg/wince/wince-cabgen b/pkg/wince/wince-cabgen index e8820d8c..97cba132 100755 --- a/pkg/wince/wince-cabgen +++ b/pkg/wince/wince-cabgen @@ -648,12 +648,25 @@ def read_config_file(filename): return result +# List the files that the output CAB depends on. + +def print_dependencies(filename): + config = read_config_file(filename) + + files_list = config["files"] + + for dest, source_file in files_list.items(): + print source_file + if len(sys.argv) < 3: print "Usage: %s " % sys.argv[0] sys.exit(0) -config = read_config_file(sys.argv[1]) +if sys.argv[1] == "-d": + print_dependencies(sys.argv[2]) +else: + config = read_config_file(sys.argv[1]) -cab_file = CabFile(config) -cab_file.write(sys.argv[2]) + cab_file = CabFile(config) + cab_file.write(sys.argv[2]) -- cgit v1.2.3