forked from msysgit/msysgit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·55 lines (47 loc) · 1.32 KB
/
release.sh
File metadata and controls
executable file
·55 lines (47 loc) · 1.32 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
cd "$(dirname "$0")"
VERSION=0.14.5
DIR=poppler-$VERSION
URL=http://poppler.freedesktop.org/$DIR.tar.gz
FILE=${URL##*/}
die () {
echo "$*" >&2
exit 1
}
test -d $DIR || {
test -f $FILE ||
curl -O $URL ||
die "Could not download Poppler"
tar xzvf $FILE && (
cd $DIR &&
git init &&
git config core.autocrlf false &&
git add . &&
git commit -m "Import of $FILE"
)
} || die "Could not check out Poppler"
# test $(cd $DIR && git rev-list HEAD | wc -l) -gt 1 ||
# (cd $DIR && git am ../patches/*) ||
# die "Could not apply patches"
# NOTE -Wl,--exclude-libs,libgcc_eh.a is needed because of bug in shipped gcc:
# http://forums.codeblocks.org/index.php/topic,10508.msg72112.html#msg72112
# http://sourceforge.net/tracker/index.php?func=detail&aid=2813974&group_id=200665&atid=974439
# Bug present in TDM GCC 4.4.0 and fixed in TDB GCC 4.4.1-tdm-1
(cd $DIR &&
LDFLAGS="-Wl,--exclude-libs,libgcc_eh.a" \
./configure --prefix=/mingw \
--disable-splash-output \
--disable-cairo-output \
--disable-poppler-glib \
--disable-gdk \
--disable-poppler-qt \
--disable-poppler-qt4 \
--disable-poppler-cpp \
--disable-gtk-test \
--disable-abiword-output \
&&
make &&
index=$(/share/msysGit/pre-install.sh) &&
make install &&
/share/msysGit/post-install.sh $index "Install $FILE"
) || die "Could not install $FILE"