]> git.lyx.org Git - features.git/commitdiff
Scons: print error message when scons is not called from top source directory or...
authorBo Peng <bpeng@lyx.org>
Fri, 15 Dec 2006 21:38:55 +0000 (21:38 +0000)
committerBo Peng <bpeng@lyx.org>
Fri, 15 Dec 2006 21:38:55 +0000 (21:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16292 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/SConstruct

index 6e8d42cbb90734525008114ef359bb2707e97b39..89961b347836d1b4e80e9053d64f4e7dcc18a36b 100644 (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)
 
 
 #----------------------------------------------------------