SConscript (3691:cf8853913972) SConscript (3701:595232e44c52)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 100 unchanged lines hidden (view full) ---

109 files, respectively. We actually copy everything in the
110 respective directories except the status & diff output files.
111
112 """
113 dest_dir = str(source[0].get_dir())
114 src_dir = str(source[1].get_dir())
115 dest_files = os.listdir(dest_dir)
116 src_files = os.listdir(src_dir)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 100 unchanged lines hidden (view full) ---

109 files, respectively. We actually copy everything in the
110 respective directories except the status & diff output files.
111
112 """
113 dest_dir = str(source[0].get_dir())
114 src_dir = str(source[1].get_dir())
115 dest_files = os.listdir(dest_dir)
116 src_files = os.listdir(src_dir)
117 # Exclude status & diff outputs
118 for f in ('outdiff', 'statsdiff', 'status'):
119 if f in src_files:
120 src_files.remove(f)
121 for f in src_files:
117 for f in ('stdout', 'stderr', 'm5stats.txt', 'config.ini', 'config.out'):
122 if f in dest_files:
123 print " Replacing file", f
124 dest_files.remove(f)
125 else:
126 print " Creating new file", f
127 copyAction = Copy(os.path.join(dest_dir, f), os.path.join(src_dir, f))
128 copyAction.strfunction = None
129 Execute(copyAction)

--- 91 unchanged lines hidden ---
118 if f in dest_files:
119 print " Replacing file", f
120 dest_files.remove(f)
121 else:
122 print " Creating new file", f
123 copyAction = Copy(os.path.join(dest_dir, f), os.path.join(src_dir, f))
124 copyAction.strfunction = None
125 Execute(copyAction)

--- 91 unchanged lines hidden ---