diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.in | 4 | ||||
| -rwxr-xr-x | src/ninjahelper.in | 11 | 
2 files changed, 12 insertions, 3 deletions
| diff --git a/src/Makefile.in b/src/Makefile.in index 8a67513..912026e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.9.2 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am.  # @configure_input@  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004  Free Software Foundation, Inc. +# 2003, 2004, 2005  Free Software Foundation, Inc.  # This Makefile.in is free software; the Free Software Foundation  # gives unlimited permission to copy and/or distribute it,  # with or without modifications, as long as this notice is preserved. diff --git a/src/ninjahelper.in b/src/ninjahelper.in index 0f5af82..7497b69 100755 --- a/src/ninjahelper.in +++ b/src/ninjahelper.in @@ -196,6 +196,15 @@ if [ ! -d "$scriptdir" ]; then  	echo "Script directory $scriptdir not found."   	exit 1  fi +libdir=`grep libdirectory $conffile | awk '{print $3}'` +if [ ! -n "$libdir" ]; then +	echo "Cound not find entry 'libdirectory' in $conffile"  +	exit 1 +fi +if [ ! -d "$libdir" ]; then +	echo "Script directory $libdir not found."  +	exit 1 +fi  configdirectory=`grep configdirectory $conffile | awk '{print $3}'`  if [ ! -n "$configdirectory" ]; then  	echo "Cound not find entry 'configdirectory' in $conffile"  @@ -206,7 +215,7 @@ if [ ! -d "$configdirectory" ]; then  	exit 1  fi -. $scriptdir/easydialog.sh +. $libdir/easydialog.sh  if [ "$UID" != "0" ]; then  	msgBox "warning" "ninjahelper must be run by root!" | 
