]> git.saurik.com Git - cycript.git/blob - evildoom.sh
Cache system as 'system' instead of Function.
[cycript.git] / evildoom.sh
1 #!/usr/bin/env bash
2 shopt -s expand_aliases
3 unalias -a
4 case `uname` in
5 (Linux)
6 libdirs=('/usr/share/gettext')
7 ;;
8 (FreeBSD)
9 alias sed=gsed
10 libdirs=('/usr/local/share/gettext')
11 ;;
12 esac
13 aclocal
14 sed -e 's/AC_PROG_AWK/dnl &/' -i aclocal.m4
15 cat `aclocal --print-ac-dir`/check_gnu_make.m4 find_apr.m4 >> aclocal.m4
16 autoconf
17 function filter()
18 {
19 sed -e '/no proper invocation of AM_INIT_AUTOMAKE was found\./d' \
20 -e '/You should verify that configure\.ac invokes AM_INIT_AUTOMAKE,/d' \
21 -e '/that aclocal\.m4 is present in the top-level directory,/d' \
22 -e '/and that aclocal\.m4 was recently regenerated (using aclocal)./d' \
23 -e "/no \`Makefile\.am' found for any configure output/d"
24 }
25 automake -acf 2>&1 | filter
26 for libdir in ${libdirs[*]}; do
27 automake -acf --libdir $libdir 2>&1 | filter
28 done