Author: suokko
Date: Wed Aug 27 11:12:14 2008
New Revision: 29017

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29017&view=rev
Log:
Made sanity_check script detect correct path to top directory

Modified:
    trunk/utils/sanity_check

Modified: trunk/utils/sanity_check
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/sanity_check?rev=29017&r1=29016&r2=29017&view=diff
==============================================================================
--- trunk/utils/sanity_check (original)
+++ trunk/utils/sanity_check Wed Aug 27 11:12:14 2008
@@ -5,7 +5,10 @@
 
 # This had better take us to the top-level source directory.  
 # Otherwise, confusion will ensue. 
-cd ..
+
+#Detect location of this script use it to cd to top-level
+FULL_PATH=`dirname $(readlink -f $0)`
+cd $FULL_PATH/..
 if [ ! -d data -o ! -d images ]
 then
        echo "sanity_check: " \
@@ -18,7 +21,7 @@
 
 echo "Checking POTFILES correctness..."
 
-potfiles="po/wesnoth/POTFILES.in po/wesnoth-lib/POTFILES.in 
po/wesnoth-editor/POTFILES.in"
+potfiles="po/wesnoth/POTFILES.in po/wesnoth-lib/POTFILES.in 
po/wesnoth-editor/POTFILES.in po/wesnoth-test/POTFILES.in"
 
 # Gather the list of sources
 find src -name '*.cpp' -print | sort >/tmp/sschk$$_sources


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to