mirror of git://git.sv.gnu.org/nano.git
54 lines
904 B
Bash
Executable File
54 lines
904 B
Bash
Executable File
#!/bin/sh
|
|
# Generate configure & friends for GIT users.
|
|
|
|
gnulib_url="git://git.sv.gnu.org/gnulib.git"
|
|
gnulib_hash="6db3edf95439f7087e60fda5e79e2c12507a6ad4"
|
|
|
|
modules="
|
|
canonicalize-lgpl
|
|
futimens
|
|
getdelim
|
|
getline
|
|
getopt-gnu
|
|
glob
|
|
isblank
|
|
iswblank
|
|
lstat
|
|
mkstemps
|
|
nl_langinfo
|
|
regex
|
|
sigaction
|
|
snprintf-posix
|
|
stdarg
|
|
strcase
|
|
strcasestr-simple
|
|
strnlen
|
|
sys_wait
|
|
vsnprintf-posix
|
|
wchar
|
|
wctype-h
|
|
wcwidth
|
|
"
|
|
|
|
# Make sure the local gnulib git repo is up-to-date.
|
|
if [ ! -d "gnulib" ]; then
|
|
git clone --depth=2222 ${gnulib_url}
|
|
fi
|
|
cd gnulib >/dev/null || exit 1
|
|
curr_hash=$(git log -1 --format=%H)
|
|
if [ "${gnulib_hash}" != "${curr_hash}" ]; then
|
|
echo "Pulling..."
|
|
git pull
|
|
git checkout --force ${gnulib_hash}
|
|
fi
|
|
cd .. >/dev/null || exit 1
|
|
|
|
rm -rf lib
|
|
echo "Gnulib-tool..."
|
|
./gnulib/gnulib-tool --import ${modules}
|
|
echo
|
|
|
|
echo "Autoreconf..."
|
|
autoreconf --install --symlink --force
|
|
echo "Done."
|