2014-09-21 00:33:45 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
./version-gen.sh
|
|
|
|
|
|
|
|
case `uname -s` in
|
|
|
|
Darwin)
|
|
|
|
homebrew_aclocal=/usr/local/share/aclocal
|
|
|
|
if [ -d $homebrew_aclocal ]; then
|
2017-10-10 23:15:25 +09:00
|
|
|
ACLOCAL_PATH="$ACLOCAL_PATH $homebrew_aclocal"
|
2014-09-21 00:33:45 +09:00
|
|
|
fi
|
2017-10-10 23:15:25 +09:00
|
|
|
gettext_prefix=/usr/local/Cellar/gettext
|
|
|
|
if [ -d $gettext_prefix ]; then
|
|
|
|
gettext_aclocal=$(ls $gettext_prefix/*/share/aclocal | \
|
|
|
|
gsort --version-sort | \
|
|
|
|
tail -n 1)
|
|
|
|
if [ -d $gettext_aclocal ]; then
|
|
|
|
ACLOCAL_PATH="$ACLOCAL_PATH $gettext_aclocal"
|
|
|
|
fi
|
2014-09-21 00:33:45 +09:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
FreeBSD)
|
2017-10-10 23:15:25 +09:00
|
|
|
ACLOCAL_PATH="$ACLOCAL_PATH /usr/local/share/aclocal/"
|
2014-09-21 00:33:45 +09:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2015-02-17 13:34:27 +09:00
|
|
|
if [ ! -e vendor/mruby-source/.git ]; then
|
|
|
|
rm -rf vendor/mruby-source
|
|
|
|
fi
|
|
|
|
git submodule update --init
|
|
|
|
|
2017-10-10 23:15:25 +09:00
|
|
|
mkdir -p m4
|
|
|
|
|
|
|
|
${AUTORECONF:-autoreconf} --force --install "$@"
|