Mercurial > gub
changeset 2382:31117f84441b
Move exe smurfing to gub.py.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Thu, 19 Oct 2006 21:12:25 +0100 |
parents | 35104e91d795 |
children | 5d501a0b3282 |
files | lib/gub.py specs/texlive.py |
diffstat | 2 files changed, 15 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/gub.py Thu Oct 19 20:52:26 2006 +0100 +++ b/lib/gub.py Thu Oct 19 21:12:25 2006 +0100 @@ -671,6 +671,21 @@ ''', locals ()) + def pre_install_smurf_exe (self): + import os + for i in self.locate_files ('%(builddir)s', '*.exe'): + base = os.path.splitext (i)[0] + self.system ('''mv %(i)s %(base)s''', locals ()) + + def post_install_smurf_exe (self): + import os + for i in (self.locate_files ('%(install_root)s/bin', '*') + + self.locate_files ('%(install_root)s/usr/bin', '*')): + if (not os.path.islink (i) + and not os.path.splitext (i)[1] + and not self.read_pipe ('file -b %(i)s', locals ()).startswith ('MS-DOS executable PE')): + self.system ('''mv %(i)s %(i)s.exe''', locals ()) + def install_readmes (self): self.system (''' mkdir -p %(install_root)s/usr/share/doc/%(name)s
--- a/specs/texlive.py Thu Oct 19 20:52:26 2006 +0100 +++ b/specs/texlive.py Thu Oct 19 21:12:25 2006 +0100 @@ -186,23 +186,6 @@ def compile_command (self): return (Texlive.compile_command (self) + self.makeflags ()) - # move to gub? - def pre_install_smurf_exe (self): - import os - for i in self.locate_files ('%(builddir)s', '*.exe'): - base = os.path.splitext (i)[0] - self.system ('''mv %(i)s %(base)s''', locals ()) - - # move to gub? - def post_install_smurf_exe (self): - import os - for i in (self.locate_files ('%(install_root)s/bin', '*') - + self.locate_files ('%(install_root)s/usr/bin', '*')): - if (not os.path.islink (i) - and not os.path.splitext (i)[1] - and not self.read_pipe ('file -b %(i)s', locals ()).startswith ('MS-DOS executable PE')): - self.system ('''mv %(i)s %(i)s.exe''', locals ()) - def install (self): self.pre_install_smurf_exe () Texlive.install (self)