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
This commit is contained in:
Bo Peng 2006-12-15 21:38:55 +00:00
parent 50e9a869a5
commit f5599ea253

View File

@ -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)
#----------------------------------------------------------