forked from p11-glue/p11-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·37 lines (29 loc) · 858 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh -e
set -e
oldpwd=$(pwd)
topdir=$(dirname $0)
cd $topdir
# Some boiler plate to get git setup as expected
if test -d .git; then
if test -f .git/hooks/pre-commit.sample && \
test ! -f .git/hooks/pre-commit; then
cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
fi
fi
set -x
gettextize=$(which gettextize || true)
if test -z "$gettextize"; then
echo "Couldn't find gettextize" >&2
exit 1
fi
# Copied from avahi's autogen.sh to work around gettext braindamage
rm -f Makefile.am~ configure.ac~
# Evil, evil, evil, evil hack
sed 's/read dummy/\#/' $gettextize | sh -s -- --copy --force --no-changelog
test -f Makefile.am~ && mv Makefile.am~ Makefile.am
test -f configure.ac~ && mv configure.ac~ configure.ac
autoreconf --force --install --verbose
if test x"$NOCONFIGURE" = x; then
cd $oldpwd
exec $topdir/configure "$@"
fi