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
|
2016-05-18 14:41:31 +02:00
|
|
|
|
|
|
|
# remove m4/ macros put there by libtool etc.
|
|
|
|
rm -f m4/libtool.m4
|
|
|
|
rm -f m4/lt~obsolete.m4
|
|
|
|
rm -f m4/ltoptions.m4
|
|
|
|
rm -f m4/ltsugar.m4
|
|
|
|
rm -f m4/ltversion.m4
|
|
|
|
rm -f m4/gtk-doc.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*
|
2016-02-09 05:25:29 +01:00
|
|
|
find doc -depth \( \
|
|
|
|
-path doc/libvips-docs.xml.in \
|
|
|
|
-o -path doc/Makefile.am \
|
|
|
|
-o -path 'doc/images/*' \
|
|
|
|
-o -name '*.xml' ! -name libvips-docs.xml ! -path 'doc/xml/*' \
|
|
|
|
-o -name '*.py' \
|
|
|
|
\) -prune -or \( \
|
|
|
|
-type f \
|
|
|
|
-o -type d -empty \
|
|
|
|
\) -delete
|
2009-08-16 17:00:08 +02:00
|
|
|
|
2010-09-01 13:16:57 +02:00
|
|
|
ACDIR=`aclocal --print-ac-dir`
|
2016-02-09 05:25:29 +01:00
|
|
|
# OS X with brew has a dirlist in ACDIR that points to several directories
|
|
|
|
# dirlist supports wildcards, but that would require eval ... which is evil
|
|
|
|
if [ -e $ACDIR/dirlist ]; then
|
|
|
|
ACDIR=`cat $ACDIR/dirlist`
|
2013-03-07 11:27:35 +01:00
|
|
|
fi
|
|
|
|
|
2015-02-11 18:01:02 +01:00
|
|
|
gtkdocize --copy --docdir doc --flavour no-tmpl || exit 1
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
# some systems need libtoolize, some glibtoolize ... how annoying
|
2016-05-26 23:15:15 +02:00
|
|
|
printf "testing for glibtoolize ... "
|
2016-02-09 05:25:29 +01:00
|
|
|
if glibtoolize --version >/dev/null 2>&1; then
|
2007-08-29 18:23:50 +02:00
|
|
|
LIBTOOLIZE=glibtoolize
|
2016-02-09 05:25:29 +01:00
|
|
|
echo using glibtoolize
|
2007-08-29 18:23:50 +02:00
|
|
|
else
|
|
|
|
LIBTOOLIZE=libtoolize
|
2016-02-09 05:25:29 +01:00
|
|
|
echo using libtoolize
|
2007-08-29 18:23:50 +02:00
|
|
|
fi
|
|
|
|
|
2008-05-16 15:18:04 +02:00
|
|
|
test -r aclocal.m4 || touch aclocal.m4
|
2015-04-20 17:54:45 +02:00
|
|
|
# gettextize produces quite a bit of benign and misleading text output, hide
|
|
|
|
# it ... hopefully any errors will go to stderr and not be hidden
|
|
|
|
glib-gettextize --force --copy > /dev/null
|
2007-08-29 18:23:50 +02:00
|
|
|
test -r aclocal.m4 && chmod u+w aclocal.m4
|
2016-05-18 15:27:57 +02:00
|
|
|
aclocal -I m4
|
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
|
2015-04-20 17:54:45 +02:00
|
|
|
echo you need swig to build from source control
|
2009-10-29 21:45:36 +01:00
|
|
|
fi
|
2016-08-19 10:15:34 +02:00
|
|
|
|
|
|
|
./configure $*
|