mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 02:41:52 +00:00
Move original autogen.sh to autogen.sh.shared Create links in each subdir (subdir/autogen.sh --> ../autogem.sh.shared) Make new autogen.sh which simply 1. cd subdir && ./autogen.sh 2. run autogen.sh.shared for the current dir (spice) Update all Makefile.am accordingly (dist-hook). Signed-off-by: Yaniv Kamay <ykamay@rehdat.com> Signed-off-by: Uri Lublin <uril@redhat.com>
32 lines
657 B
Bash
Executable File
32 lines
657 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e # exit on errors
|
|
|
|
ARGV0=$0
|
|
|
|
# Allow invocation from a separate build directory; in that case, we change
|
|
# to the source directory to run the auto*, then change back before running configure
|
|
srcdir=`dirname $ARGV0`
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
ORIGDIR=`pwd`
|
|
cd $srcdir
|
|
|
|
subdirs=$(grep '^AC_CONFIG_SUBDIRS' configure.ac | \
|
|
sed 's/AC_CONFIG_SUBDIRS(\[\(.*\)\]) *$/\1/')
|
|
echo "subdirs are $subdirs"
|
|
|
|
for d in $subdirs; do
|
|
echo "START configuring $d"
|
|
cd $d
|
|
./autogen.sh
|
|
cd ..
|
|
echo "FINISH configuring $d"
|
|
done
|
|
|
|
echo "configuring SPICE top dir"
|
|
./autogen.sh.shared
|
|
|
|
cd $ORIGDIR || exit $?
|
|
rm -f config.cache
|