Debian Codegraph @

dist/obsolete/darwin_x86_i386/build.sh

raw
1 #!/bin/bash
2
3 # The cp/rm steps are so that the packed biber main script is not
4 # called "biber" as on case-insensitive file systems, this clashes with
5 # the Biber lib directory and generates a (harmless) warning on first run
6
7 # Don't try to build 32-bit 10.5 binaries on >10.5 by manipulating macports
8 # flags and SDKs. It doesn't work. You need a real 10.5 box/VM.
9 #
10 # Have to explicitly include the Input* modules as the names of these are dynamically
11 # constructed in the code so Par::Packer can't auto-detect them.
12 # Same with some of the output modules.
13
14 # Unicode::Collate is bundled with perl but is often updated and this is a critical module
15 # for biber. There are some parts of this module which must be explicitly bundled by pp.
16 # Unfortunately, updates to the module go into site_perl and we must bundle the right version
17 # and so we check if there are any newer versions than came with the version of perl we are using
18 # by looking to see if there is a site_perl directory for the module. If there is, we use that
19 # version.
20
21 declare -r perlv='5.26'
22 declare ucpath="/opt/local/lib/perl5/${perlv}/Unicode/Collate"
23
24 # Unicode::Collate has a site_perl version so has been updated since this
25 # perl was released
26 if [ -d "/opt/local/lib/perl5/site_perl/${perlv}/darwin-thread-multi-2level/Unicode/Collate" ]
27 then
28 ucpath="/opt/local/lib/perl5/site_perl/${perlv}/darwin-thread-multi-2level/Unicode/Collate"
29 fi
30
31 echo "USING Unicode::Collate at: ${ucpath}"
32
33 cp /opt/local/libexec/perl5.26/sitebin/biber /tmp/biber-darwin
34
35 PAR_VERBATIM=1 pp \
36 --unicode \
37 --module=deprecate \
38 --module=Biber::Input::file::bibtex \
39 --module=Biber::Input::file::biblatexml \
40 --module=Biber::Output::dot \
41 --module=Biber::Output::bbl \
42 --module=Biber::Output::bblxml \
43 --module=Biber::Output::bibtex \
44 --module=Biber::Output::biblatexml \
45 --module=Pod::Simple::TranscodeSmart \
46 --module=Pod::Simple::TranscodeDumb \
47 --module=List::MoreUtils::XS \
48 --module=List::SomeUtils::XS \
49 --module=List::MoreUtils::PP \
50 --module=HTTP::Status \
51 --module=HTTP::Date \
52 --module=Encode:: \
53 --module=IO::Socket::SSL \
54 --module=IO::String \
55 --module=PerlIO::utf8_strict \
56 --module=File::Find::Rule \
57 --module=Text::CSV_XS \
58 --module=DateTime \
59 --link=/opt/local/lib/libz.1.dylib \
60 --link=/opt/local/lib/libiconv.2.dylib \
61 --link=/opt/local/libexec/perl5.26/sitebin/libbtparse.dylib \
62 --link=/opt/local/lib/libxml2.2.dylib \
63 --link=/opt/local/lib/libxslt.1.dylib \
64 --link=/opt/local/lib/libssl.1.0.0.dylib \
65 --link=/opt/local/lib/libcrypto.1.0.0.dylib \
66 --link=/opt/local/lib/libgdbm.4.dylib \
67 --link=/opt/local/lib/libexslt.0.dylib \
68 --link=/opt/local/lib/liblzma.5.dylib \
69 --link=/opt/local/lib/libintl.8.dylib \
70 --addfile="../../data/biber-tool.conf;lib/Biber/biber-tool.conf" \
71 --addfile="../../data/schemata/config.rnc;lib/Biber/config.rnc" \
72 --addfile="../../data/schemata/config.rng;lib/Biber/config.rng" \
73 --addfile="../../data/schemata/bcf.rnc;lib/Biber/bcf.rnc" \
74 --addfile="../../data/schemata/bcf.rng;lib/Biber/bcf.rng" \
75 --addfile="../../lib/Biber/LaTeX/recode_data.xml;lib/Biber/LaTeX/recode_data.xml" \
76 --addfile="../../data/bcf.xsl;lib/Biber/bcf.xsl" \
77 --addfile="${ucpath}/Locale;lib/Unicode/Collate/Locale" \
78 --addfile="${ucpath}/CJK;lib/Unicode/Collate/CJK;lib/Unicode/Collate/CJK" \
79 --addfile="${ucpath}/allkeys.txt;lib/Unicode/Collate/allkeys.txt" \
80 --addfile="${ucpath}/keys.txt;lib/Unicode/Collate/keys.txt" \
81 --addfile="/opt/local/lib/perl5/site_perl/${perlv}/Mozilla/CA/cacert.pem;lib/Mozilla/CA/cacert.pem" \
82 --addfile="/opt/local/lib/perl5/site_perl/${perlv}/Business/ISBN/RangeMessage.xml;lib/Business/ISBN/RangeMessage.xml" \
83 --addfile="/opt/local/lib/perl5/site_perl/${perlv}/darwin-thread-multi-2level/auto/Unicode/LineBreak/LineBreak.bundle;lib/auto/Unicode/LineBreak/LineBreak.bundle" \
84 --cachedeps=scancache \
85 --output=biber-darwin_x86_i386 \
86 /tmp/biber-darwin
87
88 \rm -f /tmp/biber-darwin