Commit 033ca1ab authored by Matthias Vallentin's avatar Matthias Vallentin Committed by Marian Triebe

Allow invoking config.status from everywhere

parent b423b86d
...@@ -184,14 +184,18 @@ configure () ...@@ -184,14 +184,18 @@ configure ()
cmake $CMakeCacheEntries "$sourcedir" cmake $CMakeCacheEntries "$sourcedir"
fi fi
echo "# This is the command used to configure this build" > config.status printf "#!/bin/sh\n\n" > config.status
printf "# Switch to the source of this build directory.\n" >> config.status
printf "cd \"$sourcedir\"\n\n" >> config.status
printf "# Invoke the command to configure this build.\n" >> config.status
if [ -n "$CC" ]; then if [ -n "$CC" ]; then
printf "CC=%s" $CC >> config.status printf "CC=\"%s\"\n" "$CC" >> config.status
printf ' ' >> config.status
fi fi
if [ -n "$CXX" ]; then if [ -n "$CXX" ]; then
printf "CXX=%s" $CXX >> config.status printf "CXX=\"%s\"\n" "$CXX" >> config.status
printf ' ' >> config.status fi
if [ -n "$CXXFLAGS" ]; then
printf "CXXFLAGS=\"%s\"\n" "$CXXFLAGS" >> config.status
fi fi
echo $command >> config.status echo $command >> config.status
chmod u+x config.status chmod u+x config.status
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment