2001-10-04 05:37:36 +04:00
|
|
|
#!/bin/sh
|
2016-04-18 06:39:07 +03:00
|
|
|
# Generate configure & friends for GIT users.
|
2001-10-04 05:37:36 +04:00
|
|
|
|
2017-02-22 01:04:35 +03:00
|
|
|
gnulib_url="git://git.sv.gnu.org/gnulib.git"
|
2022-04-27 12:23:09 +03:00
|
|
|
gnulib_hash="34a93be8aa8a15f5959a1b671ad1285a5d552f4b"
|
2017-02-22 01:04:35 +03:00
|
|
|
|
|
|
|
modules="
|
2017-04-04 10:29:31 +03:00
|
|
|
futimens
|
2017-02-22 01:04:37 +03:00
|
|
|
getdelim
|
|
|
|
getline
|
2017-02-22 01:04:40 +03:00
|
|
|
getopt-gnu
|
2017-02-22 01:04:43 +03:00
|
|
|
glob
|
2017-02-22 01:04:38 +03:00
|
|
|
isblank
|
|
|
|
iswblank
|
2017-02-22 01:04:46 +03:00
|
|
|
lstat
|
2021-08-22 11:52:29 +03:00
|
|
|
mkstemps
|
2017-03-08 11:16:47 +03:00
|
|
|
nl_langinfo
|
2017-02-22 01:04:39 +03:00
|
|
|
regex
|
2017-02-22 01:04:47 +03:00
|
|
|
sigaction
|
2017-02-22 01:04:41 +03:00
|
|
|
snprintf-posix
|
2017-02-22 01:04:42 +03:00
|
|
|
stdarg
|
2017-02-22 01:04:35 +03:00
|
|
|
strcase
|
|
|
|
strcasestr-simple
|
|
|
|
strnlen
|
2017-02-22 01:04:49 +03:00
|
|
|
sys_wait
|
2017-02-22 01:04:41 +03:00
|
|
|
vsnprintf-posix
|
2017-02-22 01:04:42 +03:00
|
|
|
wchar
|
|
|
|
wctype-h
|
2017-03-08 11:16:47 +03:00
|
|
|
wcwidth
|
2017-02-22 01:04:35 +03:00
|
|
|
"
|
|
|
|
|
|
|
|
# Make sure the local gnulib git repo is up-to-date.
|
|
|
|
if [ ! -d "gnulib" ]; then
|
2020-06-17 13:17:22 +03:00
|
|
|
git clone --depth=1111 ${gnulib_url}
|
2017-02-22 01:04:35 +03:00
|
|
|
fi
|
|
|
|
cd gnulib >/dev/null || exit 1
|
|
|
|
curr_hash=$(git log -1 --format=%H)
|
|
|
|
if [ "${gnulib_hash}" != "${curr_hash}" ]; then
|
2021-12-26 13:53:30 +03:00
|
|
|
echo "Pulling..."
|
2017-02-22 01:04:35 +03:00
|
|
|
git pull
|
2021-12-26 13:53:30 +03:00
|
|
|
git checkout --force ${gnulib_hash}
|
2017-02-22 01:04:35 +03:00
|
|
|
fi
|
|
|
|
cd .. >/dev/null || exit 1
|
|
|
|
|
2021-12-26 13:53:30 +03:00
|
|
|
echo "Autopoint..."
|
2021-12-26 12:09:10 +03:00
|
|
|
autopoint --force
|
|
|
|
|
2017-02-22 01:04:35 +03:00
|
|
|
rm -rf lib
|
2021-12-26 13:53:30 +03:00
|
|
|
echo "Gnulib-tool..."
|
|
|
|
./gnulib/gnulib-tool --import ${modules}
|
|
|
|
echo
|
2017-02-22 01:04:35 +03:00
|
|
|
|
2021-12-26 13:53:30 +03:00
|
|
|
echo "Aclocal..."
|
2021-12-26 12:09:10 +03:00
|
|
|
aclocal -I m4
|
2021-12-26 13:53:30 +03:00
|
|
|
echo "Autoconf..."
|
2021-12-26 12:09:10 +03:00
|
|
|
autoconf
|
2021-12-26 13:53:30 +03:00
|
|
|
echo "Autoheader..."
|
2021-12-26 12:09:10 +03:00
|
|
|
autoheader
|
2021-12-26 13:53:30 +03:00
|
|
|
echo "Automake..."
|
2021-12-26 12:09:10 +03:00
|
|
|
automake --add-missing
|
2021-12-26 13:53:30 +03:00
|
|
|
echo "Done."
|