Add english man.

master3.3
Mike Hiretsky 13 years ago
parent f1184ce780
commit a9a57a481c

@ -1,4 +1,4 @@
.TH CL-INSTALL 1 "23 august 2011" "Calculate Utilities" "Calculate Linux Installation" .TH CL-INSTALL 1 "August 23, 2011" "Calculate Utilities" "Calculate Linux Installation"
.SH NAME .SH NAME
.PP .PP
cl-install - Installs Calculate Linux on HDD, USB-Flash or USB-HDD cl-install - Installs Calculate Linux on HDD, USB-Flash or USB-HDD

@ -83,20 +83,26 @@ class build_man( distutils.core.Command ) :
def finalize_options( self ) : def finalize_options( self ) :
pass pass
def _install_man(self,man,baseLocale):
baseMan = path.basename(man)
man_num = man[-1]
manPath = path.join(BUILD_MAN_PATH,baseLocale,"man%s"%man_num)
self.mkpath(manPath)
manPath = path.join(manPath,baseMan)
self.copy_file(man,manPath)
cout("compress %s\n"% manPath)
system("bzip2 -f %s"%manPath)
def run( self ) : def run( self ) :
buildManPath = BUILD_MAN_PATH buildManPath = BUILD_MAN_PATH
self.mkpath(buildManPath) self.mkpath(buildManPath)
for locale in glob.glob("man/*"): for locale in glob.glob("man/*"):
baseLocale = path.basename(locale) baseLocale = path.basename(locale)
for man in glob.glob("%s/*.[12345678]"%locale) : if os.path.isfile(locale) and locale[-1].isdigit():
baseMan = path.basename(man) self._install_man(locale,"")
man_num = man[-1] else:
manPath = path.join(buildManPath,baseLocale,"man%s"%man_num) for man in glob.glob("%s/*.[12345678]"%locale) :
self.mkpath(manPath) self._install_man(man,baseLocale)
manPath = path.join(manPath,baseMan)
self.copy_file(man,manPath)
cout("compress %s\n"% manPath)
system("bzip2 -f %s"%manPath)
class install_man( install_data ) : class install_man( install_data ) :
description = "install man files" description = "install man files"

Loading…
Cancel
Save