Mercurial > hg > xemacs-beta
annotate nt/installer/Wise/files.py @ 4327:466ad8ad5f13
Fix a #'setenv bug, merge other changes from GNU's env.el.
2007-12-14 Aidan Kehoe <kehoea@parhasard.net>
* process.el (substitute-env-vars):
Merge an example from GNU's docstring.
* process.el (setenv):
Pass nil as the default abbrev table to the #'read-from-minibuffer
call, instead of passing the current value of the variable. Bug
introduced by an incorrect sync from GNU by Ben; reported by
Thomas Mittelstaedt in 47626712.40609@cadenas.de.
Document the #'set-time-zone-rule call when TZ is set. Push the
old value on to the beginning of setenv-history. (Both merged from
GNU.) Document that we don't do the coding-system frobbing at this
level that GNU does.
Provide a commented-out, sample implementation of GNU's
#'environment; document why I think we shouldn't include it.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Fri, 14 Dec 2007 14:13:02 +0100 |
parents | 74fd4e045ea6 |
children |
rev | line source |
---|---|
398 | 1 import os |
2 import dirs | |
3 | |
4 def listdir_recursive(basedir): | |
5 ret = [] | |
6 for f in os.listdir(basedir): | |
7 if os.path.isfile(basedir+"\\"+f): | |
8 ret.append(f) | |
9 elif os.path.isdir(basedir+"\\"+f): | |
10 for f1 in listdir_recursive(basedir+"\\"+f): | |
11 ret.append(f+"\\"+f1) | |
12 return ret | |
13 | |
14 install = [] | |
15 | |
16 for f in os.listdir(dirs.source+"\\lib-src"): | |
17 if f == "DOC" or f[-4:]==".exe": | |
18 install.append((f,dirs.source+"\\lib-src",dirs.bin_dst)) | |
19 | |
20 | |
21 for f in ['runemacs.exe', 'xemacs.exe']: | |
22 install.append((f,dirs.source+"\\src",dirs.bin_dst)) | |
23 | |
24 for f in listdir_recursive(dirs.source+"\\lisp"): | |
25 install.append((f,dirs.source+"\\lisp",dirs.lisp_dst)) | |
26 | |
27 for f in listdir_recursive(dirs.source+"\\etc"): | |
28 install.append((f,dirs.source+"\\etc",dirs.etc_dst)) | |
29 | |
30 | |
31 for f in os.listdir(dirs.source+"\\info"): | |
32 install.append((f,dirs.source+"\\info",dirs.info_dst)) | |
33 | |
34 | |
35 | |
36 |