From 3238e90969a6c688835281d56728f5e7fb6e4be0 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 15 Dec 2011 00:04:16 +0000 Subject: [PATCH] Don't install man pages on Windows --- SConstruct | 4 +++- tools/SConscript | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index 20c220460..b671c117d 100644 --- a/SConstruct +++ b/SConstruct @@ -54,10 +54,12 @@ if os.name == 'posix': defaults.prefix = '/usr/local' defaults.boostIncDir = '/usr/include' defaults.boostLibDir = '/usr/lib' + env['INSTALL_MANPAGES'] = True elif os.name == 'nt': - defaults.prefix = os.environ['ProgramFiles'] + defaults.prefix = pjoin(os.environ['ProgramFiles'], 'Cantera') defaults.boostIncDir = '' defaults.boostLibDir = '' + env['INSTALL_MANPAGES'] = False else: print "Error: Unrecognized operating system '%s'" % os.name sys.exit(1) diff --git a/tools/SConscript b/tools/SConscript index 874d1ddc1..c2883fdfe 100644 --- a/tools/SConscript +++ b/tools/SConscript @@ -25,8 +25,9 @@ installTargets.extend( mglob(localenv, pjoin('templates','f77'), '*'))) # Copy man pages -inst = localenv.Install('$inst_mandir', mglob(localenv, 'man', '*')) -installTargets.extend(inst) +if env['INSTALL_MANPAGES']: + inst = localenv.Install('$inst_mandir', mglob(localenv, 'man', '*')) + installTargets.extend(inst) ### Generate customized scripts ###