Made sanity_check script detect correct path to top directory
This commit is contained in:
parent
4b6824160d
commit
65e4eec6f5
1 changed files with 5 additions and 2 deletions
|
@ -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 @@ problems=no
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue