1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/W/build_mac.sh

43 lines
1.1 KiB
Bash
Raw Normal View History

2015-08-04 03:44:40 +02:00
#!/bin/sh
2020-04-11 01:15:57 +02:00
# $Id: build_mac.sh,v 1.15 2019/11/25 12:46:48 gilles Exp gilles $
2016-09-19 17:17:24 +02:00
# exit on any failure
set -e
2015-12-03 18:16:32 +01:00
2015-08-04 03:44:40 +02:00
eval `perl -I $HOME/perl5/lib/perl5 -Mlocal::lib`
export MANPATH=$HOME/perl5/man:$MANPATH
HOSTNAME=`hostname -s`
ARCH=`uname -m`
KERNEL=`uname -s`
echo "$HOSTNAME $ARCH $KERNEL"
BIN_NAME=imapsync_bin_Darwin
2016-09-19 17:17:24 +02:00
# exit if known needed modules are missing
sh prerequisites_imapsync
VERSION=`./imapsync --version`
# Update important Perl modules
2019-07-03 01:25:47 +02:00
OPENSSL_PREFIX=/sw cpanm Mail::IMAPClient IO::Socket::SSL Net::SSLeay PAR::Packer
2015-12-03 18:16:32 +01:00
2020-04-11 01:15:57 +02:00
pp -u -x -o $BIN_NAME \
2019-07-03 01:25:47 +02:00
-M Mail::IMAPClient -M IO::Socket -M IO::Socket::SSL \
-M Digest::MD5 -M Digest::HMAC_MD5 -M Term::ReadKey \
-M Authen::NTLM \
-M Crypt::OpenSSL::RSA -M JSON -M JSON::WebToken -M LWP -M HTML::Entities \
-M Sys::MemInfo -M Net::SSLeay \
2020-04-11 01:15:57 +02:00
-M Encode -M MIME::Base64 -M Encode::IMAPUTF7 \
2019-07-03 01:25:47 +02:00
--link /sw/lib/libssl.1.0.0.dylib \
--link /sw/lib/libcrypto.1.0.0.dylib \
imapsync
2015-08-04 03:44:40 +02:00
2016-09-19 17:17:24 +02:00
./imapsync_bin_Darwin
2015-08-04 03:44:40 +02:00
./imapsync_bin_Darwin --tests
./imapsync_bin_Darwin --testslive
2020-04-11 01:15:57 +02:00
# Do not work anymore on polarhome at 2019_11_24
#./imapsync_bin_Darwin --testslive6
2019-07-03 01:25:47 +02:00