annotate autogen.sh @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <corvid@lavabit.com>
date Thu, 23 Jun 2011 19:24:11 +0000
parents 3297aa761bc2
children
rev   line source
2
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
1 #!/bin/sh
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
2 #
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
3 # Script to generate configure&make stuff
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
4 #
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
5
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
6 #-----------------------------------------------------
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
7 # If defined, get these programs from the environment
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
8 #
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
9 : ${ACLOCAL:=aclocal}
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
10 : ${AUTOHEADER:=autoheader}
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
11 : ${AUTOCONF:=autoconf}
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
12 : ${AUTOMAKE:=automake}
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
13
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
14 #-------------------------
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
15 # Required binaries check
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
16 #
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
17 check_bin_file(){
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
18 which $1 > /dev/null 2>&1
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
19 if [ $? = 0 ]; then
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
20 return 0
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
21 else
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
22 return 1
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
23 fi
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
24 }
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
25
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
26 #------
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
27 # Main
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
28 #
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
29
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
30 #clear
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
31 ERR="no"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
32 for cmd in "$ACLOCAL" "$AUTOHEADER" "$AUTOCONF" "$AUTOMAKE"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
33 do
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
34 if check_bin_file "$cmd"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
35 then
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
36 echo -e "$cmd \tfound"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
37 else
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
38 echo -e "$cmd \tNOT found"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
39 ERR="yes"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
40 fi
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
41 done
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
42
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
43 if test $ERR = "yes"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
44 then
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
45 echo
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
46 echo "ERROR: to run this program you need the following installed"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
47 echo " $ACLOCAL $AUTOHEADER $AUTOCONF $AUTOMAKE"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
48 echo
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
49 exit 1
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
50 fi
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
51
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
52 echo "[Checks passed]"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
53 echo "Generating..."
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
54
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
55 "$ACLOCAL"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
56 "$AUTOHEADER"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
57 "$AUTOCONF"
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
58 "$AUTOMAKE" -a
3297aa761bc2 Added autogen.sh
jcid
parents:
diff changeset
59