Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 101 lines (82 sloc) 3 KB
#! /bin/sh
PROJECT=UiaDbusCoreBridge
FILE=
CONFIGURE=configure.ac
: ${AUTOCONF=autoconf}
: ${AUTOHEADER=autoheader}
: ${AUTOMAKE=automake}
: ${LIBTOOLIZE=libtoolize}
: ${ACLOCAL=aclocal}
: ${LIBTOOL=libtool}
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
TEST_TYPE=-f
aclocalinclude="-I . $ACLOCAL_FLAGS"
DIE=0
($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile $PROJECT."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile $PROJECT."
echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`libtool' installed to compile $PROJECT."
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
}
if test "$DIE" -eq 1; then
exit 1
fi
#test $TEST_TYPE $FILE || {
# echo "You must run this script in the top-level $PROJECT directory"
# exit 1
#}
if test -z "$*"; then
echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
fi
case $CC in
*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
esac
(grep "^AM_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
echo "Running $LIBTOOLIZE ..."
$LIBTOOLIZE --force --copy
}
echo "Running $ACLOCAL $aclocalinclude ..."
$ACLOCAL $aclocalinclude
echo "Running $AUTOMAKE --gnu $am_opt ..."
$AUTOMAKE --add-missing --gnu $am_opt
echo "Running $AUTOCONF ..."
$AUTOCONF
#Set up ndesk-dbus bundling
echo "Getting a fresh ndesk-dbus git checkout to bundle..."
if test -d $srcdir/ndesk-dbus-git; then
rm -rf $srcdir/ndesk-dbus-git
rm $srcdir/ndesk-dbus/*.cs
fi
git clone git://github.com/mono/dbus-sharp.git $srcdir/ndesk-dbus-git
(cd $srcdir/ndesk-dbus-git && git checkout -b mono-a11y origin/mono-a11y)
cp $srcdir/ndesk-dbus-git/src/*.cs $srcdir/ndesk-dbus/
#TODO: Only copy a specific list, use a .sources file
(cd $srcdir/ndesk-dbus; rm AssemblyInfo* Server* Daemon.cs TypeRental.cs PipeTransport.cs)
echo "Internalizing bundled ndesk-dbus source..."
perl -pi -e 's/public ((class)|(enum)|(struct)|(abstract class)|(interface)|(sealed)|(partial))/internal $1/g' $srcdir/ndesk-dbus/*.cs
#TODO: Update master to stop using [Obsolete] API
perl -pi -e 's/(\[Obsolete[^\]]*\])/\/\/$1/g' $srcdir/ndesk-dbus/*.cs
echo "Completed bundling ndesk-dbus."
echo Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure --enable-maintainer-mode $conf_flags "$@" \
Jump to Line
Something went wrong with that request. Please try again.