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