def windows_prereq_check(): print S_PPF, 'WINDOWS prereq check' # if you give rebase any other command-line switches (even /?) it # exits with return code 99 and outputs its stuff to stderr # with -b it exits with return code 0 (expected) and uses stdout v = utils.find_command_with_ver( 'Microsoft Rebase (rebase.exe)', '%s -b 0x60000000' % (REBASE,), '^(REBASE):\s+Total.*$') v = v and utils.find_command_with_ver( 'Nullsoft Installer System (makensis.exe)', '%s /version' % (MAKE_NSIS,), '^(v[0-9\.]+)$') # check that the user has put the correct vcredist_[].exe in the # archive dir if os.path.exists(os.path.join( config.archive_dir, 'vcredist_%s.exe' % (config.WINARCH_STR,))): vcr = True else: vcr = False print PPF, """vcredist_[x86,x64].exe not found. Please download vcredist_[x86,x64].exe for VS 2008 SP1 and put it in the johannes archive directory. """ return v and vcr
def windows_prereq_check(): print S_PPF, 'WINDOWS prereq check' # if you give rebase any other command-line switches (even /?) it # exits with return code 99 and outputs its stuff to stderr # with -b it exits with return code 0 (expected) and uses stdout v = utils.find_command_with_ver('Microsoft Rebase (rebase.exe)', '%s -b 0x60000000' % (REBASE, ), '^(REBASE):\s+Total.*$') v = v and utils.find_command_with_ver( 'Nullsoft Installer System (makensis.exe)', '%s /version' % (MAKE_NSIS, ), '^(v[0-9\.]+)$') # check that the user has put the correct vcredist_[].exe in the # archive dir if os.path.exists( os.path.join(config.archive_dir, 'vcredist_%s.exe' % (config.WINARCH_STR, ))): vcr = True else: vcr = False print PPF, """vcredist_[x86,x64].exe not found. Please download vcredist_[x86,x64].exe for VS 2008 SP1 and put it in the johannes archive directory. """ return v and vcr
def posix_prereq_check(working_dir): """Perform posix system check for prerequisite software. Largest part of this checking is done in the second bootstrap shell script (executed before this file). Here we check for basic stuff like cvs, svn and patch. """ v = utils.find_command_with_ver( 'CVS', '%s -v' % (config.CVS,), '\(CVS\)\s+(.*)\s+') v = v and utils.find_command_with_ver( 'Subversion (SVN)', '%s --version' % (config.SVN,), 'version\s+(.*)$') v = v and utils.find_command_with_ver( 'patch', '%s -v' % (config.PATCH,), '^patch\s+(.*)$') # now check that working_dir contains the required subdirs dv = True for wsub in ['archive', 'build', 'inst']: cdir = os.path.join(working_dir, wsub) if os.path.isdir(cdir): msg = '%s exists.' % (cdir,) else: msg = '%s does not exist.' % (cdir,) dv = False utils.output(msg) return v and dv
def posix_prereq_check(working_dir): """Perform posix system check for prerequisite software. Largest part of this checking is done in the second bootstrap shell script (executed before this file). Here we check for basic stuff like cvs, svn and patch. """ v = utils.find_command_with_ver('CVS', '%s -v' % (config.CVS, ), '\(CVS\)\s+(.*)\s+') v = v and utils.find_command_with_ver('Subversion (SVN)', '%s --version' % (config.SVN, ), 'version\s+(.*)$') v = v and utils.find_command_with_ver('patch', '%s -v' % (config.PATCH, ), '^patch\s+(.*)$') # now check that working_dir contains the required subdirs dv = True for wsub in ['archive', 'build', 'inst']: cdir = os.path.join(working_dir, wsub) if os.path.isdir(cdir): msg = '%s exists.' % (cdir, ) else: msg = '%s does not exist.' % (cdir, ) dv = False utils.output(msg) return v and dv
def posix_prereq_check(): print S_PPF, 'POSIX prereq check' # gnu # have the word version anywhere v = utils.find_command_with_ver('strip', '%s --version' % (STRIP, ), '([0-9\.]+)') v = v and utils.find_command_with_ver('chrpath', '%s --version' % (CHRPATH, ), 'version\s+([0-9\.]+)') return v
def posix_prereq_check(): print S_PPF, 'POSIX prereq check' # gnu # have the word version anywhere v = utils.find_command_with_ver( 'strip', '%s --version' % (STRIP,), '([0-9\.]+)') v = v and utils.find_command_with_ver( 'chrpath', '%s --version' % (CHRPATH,), 'version\s+([0-9\.]+)') return v
def windows_prereq_check(working_dir): """Perform Windows system check for prerequisite software and directory structure. """ utils.output("Windows prerequisites check", 70, '#') v = utils.find_command_with_ver( 'MS Visual Studio', '%s /?' % (config.DEVENV,), 'Visual Studio Version (.*)\.$') #v = v and utils.find_command_with_ver( # 'CMake', '%s --version' % (config.CMAKE_BINPATH,), # '^cmake version\s+(.*)$') v = v and utils.find_command_with_ver( 'CVS', '%s -v' % (config.CVS,), '\((CVS|CVSNT)\)\s+(.*)\s+') v = v and utils.find_command_with_ver( 'Subversion (SVN)', '%s --version' % (config.SVN,), 'version\s+(.*)$') v = v and utils.find_command_with_ver( 'GIT', '%s --version' % (config.GIT,), 'version\s+(.*)$') v = v and utils.find_command_with_ver( 'patch', '%s -v' % (config.PATCH,), '^patch\s+(.*)$') # now check that working_dir contains the required subdirs dv = True for wsub in ['archive', 'build', 'inst']: cdir = os.path.join(working_dir, wsub) if os.path.isdir(cdir): msg = '%s exists.' % (cdir,) else: msg = '%s does not exist.' % (cdir,) dv = False utils.output(msg) return v and dv
def windows_prereq_check(working_dir): """Perform Windows system check for prerequisite software and directory structure. """ utils.output("Windows prerequisites check", 70, '#') v = utils.find_command_with_ver('MS Visual Studio', '%s /?' % (config.DEVENV, ), 'Visual Studio Version (.*)\.$') #v = v and utils.find_command_with_ver( # 'CMake', '%s --version' % (config.CMAKE_BINPATH,), # '^cmake version\s+(.*)$') v = v and utils.find_command_with_ver('CVS', '%s -v' % (config.CVS, ), '\((CVS|CVSNT)\)\s+(.*)\s+') v = v and utils.find_command_with_ver('Subversion (SVN)', '%s --version' % (config.SVN, ), 'version\s+(.*)$') v = v and utils.find_command_with_ver('GIT', '%s --version' % (config.GIT, ), 'version\s+(.*)$') v = v and utils.find_command_with_ver('patch', '%s -v' % (config.PATCH, ), '^patch\s+(.*)$') # now check that working_dir contains the required subdirs dv = True for wsub in ['archive', 'build', 'inst']: cdir = os.path.join(working_dir, wsub) if os.path.isdir(cdir): msg = '%s exists.' % (cdir, ) else: msg = '%s does not exist.' % (cdir, ) dv = False utils.output(msg) return v and dv