2013-12-26 08:05:38 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-01-08 19:07:06 +08:00
|
|
|
export AUTOMAKE_LIB=`automake --print-libdir`
|
|
|
|
|
2013-12-26 08:05:38 +08:00
|
|
|
./clean.sh
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
aclocal
|
|
|
|
automake --force-missing --add-missing
|
|
|
|
autoconf
|
|
|
|
|
2015-02-27 15:41:44 +08:00
|
|
|
rm -rvf autom*te.cache config.sub config.guess
|
2014-05-07 11:31:53 +08:00
|
|
|
|
2015-01-08 19:07:06 +08:00
|
|
|
if [ -d ${AUTOMAKE_LIB} ]
|
2014-05-07 11:31:53 +08:00
|
|
|
then
|
2015-01-08 19:07:06 +08:00
|
|
|
rm -vf compile depcomp install-sh missing
|
|
|
|
cp -vf ${AUTOMAKE_LIB}/compile .
|
|
|
|
cp -vf ${AUTOMAKE_LIB}/depcomp .
|
|
|
|
cp -vf ${AUTOMAKE_LIB}/install-sh .
|
|
|
|
cp -vf ${AUTOMAKE_LIB}/missing .
|
2015-02-27 15:41:44 +08:00
|
|
|
# platform specific detection in configure.ac
|
|
|
|
cp -vf ${AUTOMAKE_LIB}/config.sub .
|
|
|
|
cp -vf ${AUTOMAKE_LIB}/config.guess .
|
2015-01-08 19:07:06 +08:00
|
|
|
else
|
|
|
|
echo "****************************************************************"
|
|
|
|
echo "Error: automake ${AUTOMAKE_LIB} not found - exiting!"
|
|
|
|
exit 1
|
2014-05-07 11:31:53 +08:00
|
|
|
fi
|
2013-12-26 08:05:38 +08:00
|
|
|
|
2017-06-04 15:33:20 +08:00
|
|
|
# detect Bash@Ubuntu@Windows
|
|
|
|
export VENDOR_FILE=/proc/vendor
|
|
|
|
export HINT_FILE=/tmp/hh-ms-wsl
|
|
|
|
|
|
|
|
if [ -e "${VENDOR_FILE}" ]
|
|
|
|
then
|
|
|
|
IS_MS=`grep Microsoft ${VENDOR_FILE}`
|
|
|
|
if [[ ! -z "${IS_MS}" ]]
|
|
|
|
then
|
|
|
|
echo "DETECTED Bash on Linux on Windows (MS WSL)"
|
|
|
|
touch ${HINT_FILE}
|
|
|
|
else
|
|
|
|
rm -vf ${HINT_FILE}
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
rm -vf ${HINT_FILE}
|
|
|
|
fi
|
|
|
|
|
2014-01-04 16:27:59 +08:00
|
|
|
cd dist
|
2013-12-26 08:05:38 +08:00
|
|
|
|
2014-01-04 16:27:59 +08:00
|
|
|
# eof
|