]>
Commit | Line | Data |
---|---|---|
46aded9a MT |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then | |
6 | cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ | |
7 | chmod +x .git/hooks/pre-commit && \ | |
8 | echo "Activated pre-commit hook." | |
9 | fi | |
10 | ||
2bb7d64e | 11 | intltoolize --force --automake |
46aded9a MT |
12 | autoreconf --install --symlink |
13 | ||
14 | libdir() { | |
15 | echo $(cd $1/$(gcc -print-multi-os-directory); pwd) | |
16 | } | |
17 | ||
18 | args="--prefix=/usr \ | |
19 | --sysconfdir=/etc \ | |
20 | --libdir=$(libdir /usr/lib)" | |
21 | ||
22 | echo | |
23 | echo "----------------------------------------------------------------" | |
24 | echo "Initialized build system. For a common configuration please run:" | |
25 | echo "----------------------------------------------------------------" | |
26 | echo | |
27 | echo "./configure CFLAGS='-g -O0' $args" | |
28 | echo |