annotate nt/installer/Wise/files.py @ 3250:2b8bb4938bb4

[xemacs-hg @ 2006-02-21 11:33:41 by stephent] Commit syntax-cache fixes. <87oe11ne10.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Tue, 21 Feb 2006 11:33:46 +0000
parents 74fd4e045ea6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
1 import os
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
2 import dirs
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
3
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
4 def listdir_recursive(basedir):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
5 ret = []
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
6 for f in os.listdir(basedir):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
7 if os.path.isfile(basedir+"\\"+f):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
8 ret.append(f)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
9 elif os.path.isdir(basedir+"\\"+f):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
10 for f1 in listdir_recursive(basedir+"\\"+f):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
11 ret.append(f+"\\"+f1)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
12 return ret
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
13
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
14 install = []
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
15
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
16 for f in os.listdir(dirs.source+"\\lib-src"):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
17 if f == "DOC" or f[-4:]==".exe":
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
18 install.append((f,dirs.source+"\\lib-src",dirs.bin_dst))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
19
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
20
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
21 for f in ['runemacs.exe', 'xemacs.exe']:
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
22 install.append((f,dirs.source+"\\src",dirs.bin_dst))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
23
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
24 for f in listdir_recursive(dirs.source+"\\lisp"):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
25 install.append((f,dirs.source+"\\lisp",dirs.lisp_dst))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
26
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
27 for f in listdir_recursive(dirs.source+"\\etc"):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
28 install.append((f,dirs.source+"\\etc",dirs.etc_dst))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
29
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
30
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
31 for f in os.listdir(dirs.source+"\\info"):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
32 install.append((f,dirs.source+"\\info",dirs.info_dst))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
33
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
34
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
35
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
36