view nt/installer/Wise/filelist.py @ 1692:6265c9c31f53

[xemacs-hg @ 2003-09-18 05:13:54 by youngs] 2003-09-18 Steve Youngs <youngs@xemacs.org> * configure: Re-generate after Martin's configure.in patch. 2003-09-13 Martin Buchholz <martin@xemacs.org> * configure.in (OS_RELEASE): Add support for SunOS 5.10. On current OSes produced by Sun, `uname -r' prints "5.9". It seems likely that on future OSes, `uname -r' will print "5.10". We need to accept multi-digit release numbers. 2003-09-13 Martin Buchholz <martin@xemacs.org> * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
author youngs
date Thu, 18 Sep 2003 05:14:00 +0000
parents 74fd4e045ea6
children
line wrap: on
line source

import os
import dirs
import string

def listdir_recursive(basedir):
    ret = []
    for f in os.listdir(basedir):
	if os.path.isfile(basedir+"\\"+f):
	    ret.append(f)
	elif os.path.isdir(basedir+"\\"+f):
	    for f1 in listdir_recursive(basedir+"\\"+f):
		ret.append(f+"\\"+f1)
    return ret

all = []



for f in listdir_recursive(dirs.installed):
    if string.find(f,'CVS')>=0:
        continue
    all.append((f, dirs.installed, dirs.dst))