shell prompt should not beep and only show MSYSTEM when non-standard.
[msysgit.git] / src / poppler / release.sh
bloba235e2e4e7389bbe8e9788fc8c10388d90d2f719
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 VERSION=0.14.5
6 DIR=poppler-$VERSION
7 URL=http://poppler.freedesktop.org/$DIR.tar.gz
9 FILE=${URL##*/}
11 die () {
12 echo "$*" >&2
13 exit 1
16 test -d $DIR || {
17 test -f $FILE ||
18 curl -O $URL ||
19 die "Could not download Poppler"
21 tar xzvf $FILE && (
22 cd $DIR &&
23 git init &&
24 git config core.autocrlf false &&
25 git add . &&
26 git commit -m "Import of $FILE"
28 } || die "Could not check out Poppler"
30 # test $(cd $DIR && git rev-list HEAD | wc -l) -gt 1 ||
31 # (cd $DIR && git am ../patches/*) ||
32 # die "Could not apply patches"
34 # NOTE -Wl,--exclude-libs,libgcc_eh.a is needed because of bug in shipped gcc:
35 # http://forums.codeblocks.org/index.php/topic,10508.msg72112.html#msg72112
36 # http://sourceforge.net/tracker/index.php?func=detail&aid=2813974&group_id=200665&atid=974439
37 # Bug present in TDM GCC 4.4.0 and fixed in TDB GCC 4.4.1-tdm-1
38 (cd $DIR &&
39 LDFLAGS="-Wl,--exclude-libs,libgcc_eh.a" \
40 ./configure --prefix=/mingw \
41 --disable-splash-output \
42 --disable-cairo-output \
43 --disable-poppler-glib \
44 --disable-gdk \
45 --disable-poppler-qt \
46 --disable-poppler-qt4 \
47 --disable-poppler-cpp \
48 --disable-gtk-test \
49 --disable-abiword-output \
51 make &&
52 index=$(/share/msysGit/pre-install.sh) &&
53 make install &&
54 /share/msysGit/post-install.sh $index "Install $FILE"
55 ) || die "Could not install $FILE"