From 045b46ea2865426ed7e3b27640f86829f4663eeb Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 18 Dec 2002 17:57:26 +0000 Subject: [PATCH] Some distrib tweaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/distrib/genfilelist.py | 4 ++-- wxPython/distrib/makedemo | 2 +- wxPython/distrib/wxPythonFull.spec.in | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wxPython/distrib/genfilelist.py b/wxPython/distrib/genfilelist.py index db2cb0b9c1..20760b36d9 100644 --- a/wxPython/distrib/genfilelist.py +++ b/wxPython/distrib/genfilelist.py @@ -7,7 +7,7 @@ Usage: genfilelist.py [-r] build_root filespec(s) """ -import sys, os, glob +import sys, os, glob, stat def walktree(names, buildroot, recurse): @@ -25,7 +25,7 @@ def printfilename(name, buildroot, isdir): fmt = "%%dir %%attr(%o, root, root) %s" else: fmt = "%%attr(%o, root, root) %s" - print fmt % (s.st_mode & 0777, realname) + print fmt % (s[stat.ST_MODE] & 0777, realname) def main(args): diff --git a/wxPython/distrib/makedemo b/wxPython/distrib/makedemo index 4cc6c737da..af2983ee31 100755 --- a/wxPython/distrib/makedemo +++ b/wxPython/distrib/makedemo @@ -21,7 +21,7 @@ cp -R samples _distrib_tgz/wxPython-$1 rm -rf `find _distrib_tgz/wxPython-$1 -name CVS` rm -f `find _distrib_tgz/wxPython-$1 -name "*.pyc"` rm -f `find _distrib_tgz/wxPython-$1 -name .cvsignore` -rm -f `find _distrib_tgz/wxPython-$1 -name core` +rm -f `find _distrib_tgz/wxPython-$1 -name "core*"` rm -f `find _distrib_tgz/wxPython-$1 -name wxPython` rm -f `find _distrib_tgz/wxPython-$1 -name "*.o"` rm -f `find _distrib_tgz/wxPython-$1 -name "*.so"` diff --git a/wxPython/distrib/wxPythonFull.spec.in b/wxPython/distrib/wxPythonFull.spec.in index 5c3ad6175e..853c329d96 100644 --- a/wxPython/distrib/wxPythonFull.spec.in +++ b/wxPython/distrib/wxPythonFull.spec.in @@ -144,6 +144,7 @@ cd $WXDIR/wxPython mkdir -p $RPM_BUILD_ROOT/usr/bin for s in \ + helpviewer \ img2png \ img2py \ img2xpm \