libvips/bootstrap.sh

65 lines
1.8 KiB
Bash
Raw Normal View History

2007-08-29 18:23:50 +02:00
#!/bin/sh
2014-03-28 14:55:56 +01:00
# set -x
2007-08-29 18:23:50 +02:00
# a bunch of cleaning up ... make certain everything will be regenerated
rm -f Makefile Makefile.in aclocal.m4
rm -rf autom4te.cache
2010-09-01 13:16:57 +02:00
rm -f m4/*
2007-08-29 18:23:50 +02:00
rm -f config.* configure depcomp
rm -f install-sh intltool-* libtool ltmain.sh missing mkinstalldirs
2009-06-17 16:40:23 +02:00
rm -f stamp-* vipsCC-7.19.pc vips-7.19.spec vips-7.19.pc
2009-08-16 17:00:08 +02:00
rm -f swig/vipsCC/*.cxx
rm -f swig/vipsCC/VImage.h
rm -f swig/vipsCC/VImage.py python/vipsCC/VError.py python/vipsCC/VMask.py python/vipsCC/Display.py
2007-08-29 18:23:50 +02:00
rm -f benchmark/temp*
2009-11-02 18:54:42 +01:00
( cd doc ; mkdir poop ; mv reference/libvips-docs.sgml.in poop ; mv reference/Makefile.am poop ; mv reference/images poop ; rm -rf reference/* ; mv poop/* reference ; rmdir poop )
2009-08-16 17:00:08 +02:00
2010-09-01 13:16:57 +02:00
# glib-gettextize asks us to copy these files to m4 if they aren't there
# I don't have $ACDIR/isc-posix.m4, how mysterious
ACDIR=`aclocal --print-ac-dir`
2013-03-07 11:27:35 +01:00
# OS X with brew sets ACDIR to
# /usr/local/Cellar/automake/1.13.1/share/aclocal, the staging area, which is
# totally wrong argh
if [ ! -d $ACDIR ]; then
2013-03-07 11:27:35 +01:00
ACDIR=/usr/local/share/aclocal
fi
mkdir -p m4
2010-09-01 13:16:57 +02:00
cp $ACDIR/codeset.m4 m4
cp $ACDIR/gettext.m4 m4
cp $ACDIR/glibc21.m4 m4
cp $ACDIR/iconv.m4 m4
cp $ACDIR/isc-posix.m4 m4
cp $ACDIR/lcmessage.m4 m4
cp $ACDIR/progtest.m4 m4
2011-06-20 19:00:01 +02:00
cp $ACDIR/introspection.m4 m4
2010-09-01 13:16:57 +02:00
2014-03-23 13:26:06 +01:00
gtkdocize --copy --docdir doc/reference || exit 1
2007-08-29 18:23:50 +02:00
# some systems need libtoolize, some glibtoolize ... how annoying
echo testing for glibtoolize ...
if glibtoolize --version >/dev/null 2>&1; then
LIBTOOLIZE=glibtoolize
echo using glibtoolize
else
LIBTOOLIZE=libtoolize
echo using libtoolize
fi
2008-05-16 15:18:04 +02:00
test -r aclocal.m4 || touch aclocal.m4
2007-08-29 18:23:50 +02:00
glib-gettextize --force --copy
test -r aclocal.m4 && chmod u+w aclocal.m4
2008-05-18 00:12:29 +02:00
# intltoolize --copy --force --automake
2008-05-16 15:18:04 +02:00
aclocal
2007-08-29 18:23:50 +02:00
autoconf
autoheader
$LIBTOOLIZE --copy --force --automake
automake --add-missing --copy
2009-10-29 21:45:36 +01:00
2009-11-01 11:39:17 +01:00
swig -version > /dev/null
if [ $? -ne 0 ]; then
2009-10-29 21:45:36 +01:00
echo you need swig to build from SVN
fi