autogen.sh (904B)
1 #!/bin/sh 2 # Generate configure & friends for GIT users. 3 4 gnulib_url="git://git.sv.gnu.org/gnulib.git" 5 gnulib_hash="f3b9112a5926daf3072b161a41e0ec39bd490779" 6 7 modules=" 8 canonicalize-lgpl 9 futimens 10 getdelim 11 getline 12 getopt-gnu 13 glob 14 isblank 15 iswblank 16 lstat 17 mkstemps 18 nl_langinfo 19 regex 20 sigaction 21 snprintf-posix 22 stdarg 23 strcase 24 strcasestr-simple 25 strnlen 26 sys_wait 27 vsnprintf-posix 28 wchar 29 wctype-h 30 wcwidth 31 " 32 33 # Make sure the local gnulib git repo is up-to-date. 34 if [ ! -d "gnulib" ]; then 35 git clone --depth=2222 ${gnulib_url} 36 fi 37 cd gnulib >/dev/null || exit 1 38 curr_hash=$(git log -1 --format=%H) 39 if [ "${gnulib_hash}" != "${curr_hash}" ]; then 40 echo "Pulling..." 41 git pull 42 git checkout --force ${gnulib_hash} 43 fi 44 cd .. >/dev/null || exit 1 45 46 rm -rf lib 47 echo "Gnulib-tool..." 48 ./gnulib/gnulib-tool --import ${modules} 49 echo 50 51 echo "Autoreconf..." 52 autoreconf --install --symlink --force 53 echo "Done."