Jordi Mallach | 19aad37 | 2001-10-04 01:37:36 +0000 | [diff] [blame] | 1 | #!/bin/sh |
Mike Frysinger | 8aeb843 | 2016-04-17 23:39:07 -0400 | [diff] [blame] | 2 | # Generate configure & friends for GIT users. |
Jordi Mallach | 19aad37 | 2001-10-04 01:37:36 +0000 | [diff] [blame] | 3 | |
Mike Frysinger | ba8d71f | 2017-02-21 17:04:35 -0500 | [diff] [blame] | 4 | gnulib_url="git://git.sv.gnu.org/gnulib.git" |
Benno Schulenberg | 4567360 | 2017-11-10 19:40:23 +0100 | [diff] [blame^] | 5 | gnulib_hash="7f2c4e91361c28b8a6744a8b47f1d8d847c61d55" |
Mike Frysinger | ba8d71f | 2017-02-21 17:04:35 -0500 | [diff] [blame] | 6 | |
7 | modules=" | ||||
Kamil Dudka | 70bcf75 | 2017-04-04 09:29:31 +0200 | [diff] [blame] | 8 | futimens |
Mike Frysinger | e9a3f85 | 2017-02-21 17:04:37 -0500 | [diff] [blame] | 9 | getdelim |
10 | getline | ||||
Mike Frysinger | 272345c | 2017-02-21 17:04:40 -0500 | [diff] [blame] | 11 | getopt-gnu |
Mike Frysinger | a0fb552 | 2017-02-21 17:04:43 -0500 | [diff] [blame] | 12 | glob |
Mike Frysinger | 63cae0c | 2017-02-21 17:04:38 -0500 | [diff] [blame] | 13 | isblank |
14 | iswblank | ||||
Mike Frysinger | 7c2cfd6 | 2017-02-21 17:04:46 -0500 | [diff] [blame] | 15 | lstat |
Mike Frysinger | 0d9a734 | 2017-03-08 00:16:47 -0800 | [diff] [blame] | 16 | nl_langinfo |
Mike Frysinger | 3deec43 | 2017-02-21 17:04:39 -0500 | [diff] [blame] | 17 | regex |
Mike Frysinger | cab3377 | 2017-02-21 17:04:47 -0500 | [diff] [blame] | 18 | sigaction |
Mike Frysinger | 9a2deb4 | 2017-02-21 17:04:41 -0500 | [diff] [blame] | 19 | snprintf-posix |
Mike Frysinger | e7c4352 | 2017-02-21 17:04:42 -0500 | [diff] [blame] | 20 | stdarg |
Mike Frysinger | ba8d71f | 2017-02-21 17:04:35 -0500 | [diff] [blame] | 21 | strcase |
22 | strcasestr-simple | ||||
23 | strnlen | ||||
Mike Frysinger | 0176cb5 | 2017-02-21 17:04:49 -0500 | [diff] [blame] | 24 | sys_wait |
Mike Frysinger | 9a2deb4 | 2017-02-21 17:04:41 -0500 | [diff] [blame] | 25 | vsnprintf-posix |
Mike Frysinger | e7c4352 | 2017-02-21 17:04:42 -0500 | [diff] [blame] | 26 | wchar |
27 | wctype-h | ||||
Mike Frysinger | 0d9a734 | 2017-03-08 00:16:47 -0800 | [diff] [blame] | 28 | wcwidth |
Mike Frysinger | ba8d71f | 2017-02-21 17:04:35 -0500 | [diff] [blame] | 29 | " |
30 | |||||
31 | # Make sure the local gnulib git repo is up-to-date. | ||||
32 | if [ ! -d "gnulib" ]; then | ||||
33 | git clone --depth=123 ${gnulib_url} | ||||
34 | fi | ||||
35 | cd gnulib >/dev/null || exit 1 | ||||
36 | curr_hash=$(git log -1 --format=%H) | ||||
37 | if [ "${gnulib_hash}" != "${curr_hash}" ]; then | ||||
38 | git pull | ||||
39 | git checkout -f ${gnulib_hash} | ||||
40 | fi | ||||
41 | cd .. >/dev/null || exit 1 | ||||
42 | |||||
43 | rm -rf lib | ||||
44 | ./gnulib/gnulib-tool \ | ||||
45 | --import \ | ||||
46 | ${modules} | ||||
47 | |||||
Jordi Mallach | 4805378 | 2003-01-15 17:38:38 +0000 | [diff] [blame] | 48 | autoreconf -f -i -s |