Changeset - r9962:288ef297f5e3
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-08-21 00:02:45
rubidium@openttd.org
(svn r14117) -Fix: compile failing because the language files can't be copied to the right directory when piping the output because during configure a wrong path would be written in a variable when passing the output into a file under MinGW. You get it? well, I do not.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
configure
Show inline comments
 
#!/bin/sh
 

	
 
CONFIGURE_EXECUTABLE="$_"
 
# On *nix systems those two are equal when ./configure is done
 
if [ "$0" != "$CONFIGURE_EXECUTABLE" ]; then
 
	# On some systems, when ./configure is triggered from 'make'
 
	#  the $_ is filled with 'make'. So if that is true, skip 'make'
 
	#  and use $0 (and hope that is correct ;))
 
	if [ -n "`echo $CONFIGURE_EXECUTABLE | grep make`" ]; then
 
		CONFIGURE_EXECUTABLE="$0"
 
	else
 
		CONFIGURE_EXECUTABLE="$CONFIGURE_EXECUTABLE $0"
 
	fi
 
fi
 
# Find out where configure is (in what dir)
 
ROOT_DIR="`dirname $0`"
 
ROOT_DIR="`cd $ROOT_DIR && pwd`"
 

	
 
PWD="`pwd`"
 
PREFIX="`pwd`/bin"
 
PREFIX="$PWD/bin"
 

	
 
. $ROOT_DIR/config.lib
 

	
 
# Set default dirs
 
OBJS_DIR="$PWD/objs"
 
BASE_SRC_OBJS_DIR="$OBJS_DIR"
 
LANG_OBJS_DIR="$OBJS_DIR/lang"
 
BIN_DIR="$PREFIX"
 
SRC_DIR="$ROOT_DIR/src"
 
LANG_DIR="$SRC_DIR/lang"
 
MEDIA_DIR="$ROOT_DIR/media"
 
SOURCE_LIST="$ROOT_DIR/source.list"
 

	
 
if [ "$1" = "--reconfig" ] || [ "$1" = "--reconfigure" ]; then
 
	if [ ! -f "config.cache" ]; then
 
		echo "can't reconfigure, because never configured before"
 
		exit 1
 
	fi
 
	# Make sure we don't lock config.cache
 
	cat config.cache | sed 's/\\ /\\\\ /g' > cache.tmp
 
	sh cache.tmp
 
	rm -f cache.tmp
 
	exit $?
 
fi
0 comments (0 inline, 0 general)