From f5599ea253a79ad4c1a491b99231bfa221eccad8 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Fri, 15 Dec 2006 21:38:55 +0000 Subject: [PATCH] Scons: print error message when scons is not called from top source directory or development/scons git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16292 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/SConstruct | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/development/scons/SConstruct b/development/scons/SConstruct index 6e8d42cbb9..89961b3478 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -42,9 +42,15 @@ if os.path.isfile('SConstruct'): top_src_dir = '../..' scons_dir = '.' # called as 'scons -f development/scons/SConstruct' -else: +elif os.path.isfile('configure.ac'): top_src_dir = '.' scons_dir = 'development/scons' +else: + print "scons can only be called from top source directory, with command:" + print " $ scons -f development/scons/SConstruct [other options]" + print "or from development/scons, with command:" + print " $ scons [options]" + Exit(1) #----------------------------------------------------------