From ddce842c733aae8084e6a319d14f174b392de71f Mon Sep 17 00:00:00 2001 From: atraczyk <andreastraczyk@gmail.com> Date: Tue, 10 Jan 2017 16:22:17 -0500 Subject: [PATCH] contrib: add UWP support for gmp, nettle, iconv, zlib - adds fetch scripts for gmp, nettle, iconv, and zlib - adds fetch script all contribs Change-Id: If54204187c546b22a1a209747bce64f0fafac1fe Tuleap: #790 --- contrib/src/fetch_all_uwp.bat | 18 ++++++++++++++++++ contrib/src/gmp/fetch_and_patch.bat | 10 ++++++++++ contrib/src/gnutls/fetch_and_patch.bat | 3 +-- contrib/src/iconv/fetch_and_patch.bat | 10 ++++++++++ contrib/src/nettle/fetch_and_patch.bat | 10 ++++++++++ contrib/src/opendht/fetch_and_patch.bat | 3 +-- contrib/src/pjproject/fetch_and_patch.bat | 9 ++++----- contrib/src/zlib/fetch_and_patch.bat | 10 ++++++++++ 8 files changed, 64 insertions(+), 9 deletions(-) create mode 100644 contrib/src/fetch_all_uwp.bat create mode 100644 contrib/src/gmp/fetch_and_patch.bat create mode 100644 contrib/src/iconv/fetch_and_patch.bat create mode 100644 contrib/src/nettle/fetch_and_patch.bat create mode 100644 contrib/src/zlib/fetch_and_patch.bat diff --git a/contrib/src/fetch_all_uwp.bat b/contrib/src/fetch_all_uwp.bat new file mode 100644 index 0000000000..d79fe4ab51 --- /dev/null +++ b/contrib/src/fetch_all_uwp.bat @@ -0,0 +1,18 @@ +@echo OFF +SETLOCAL EnableDelayedExpansion + +set SRC=%~dp0 + +set DEPENDENCIES=( ^ +gmp, ^ +gnutls, ^ +iconv, ^ +opendht, ^ +nettle, ^ +pjproject ^ +zlib ^ +) + +for %%I in %DEPENDENCIES% do ( + call %SRC%\%%I\fetch_and_patch.bat +) \ No newline at end of file diff --git a/contrib/src/gmp/fetch_and_patch.bat b/contrib/src/gmp/fetch_and_patch.bat new file mode 100644 index 0000000000..b1c8185594 --- /dev/null +++ b/contrib/src/gmp/fetch_and_patch.bat @@ -0,0 +1,10 @@ +set BUILD=%SRC%..\build + +set REPOURL="https://github.com/ShiftMediaProject/gmp.git" + +mkdir %BUILD% +cd %BUILD% + +git clone %REPOURL% + +cd %SRC% \ No newline at end of file diff --git a/contrib/src/gnutls/fetch_and_patch.bat b/contrib/src/gnutls/fetch_and_patch.bat index a7c369384d..6486c0ed56 100644 --- a/contrib/src/gnutls/fetch_and_patch.bat +++ b/contrib/src/gnutls/fetch_and_patch.bat @@ -1,5 +1,4 @@ -set BUILD=..\..\build -set SRC=..\..\src +set BUILD=%SRC%..\build mkdir %BUILD% cd %BUILD% diff --git a/contrib/src/iconv/fetch_and_patch.bat b/contrib/src/iconv/fetch_and_patch.bat new file mode 100644 index 0000000000..df907664b7 --- /dev/null +++ b/contrib/src/iconv/fetch_and_patch.bat @@ -0,0 +1,10 @@ +set BUILD=%SRC%..\build + +set REPOURL="https://github.com/ShiftMediaProject/libiconv.git" + +mkdir %BUILD% +cd %BUILD% + +git clone %REPOURL% + +cd %SRC% \ No newline at end of file diff --git a/contrib/src/nettle/fetch_and_patch.bat b/contrib/src/nettle/fetch_and_patch.bat new file mode 100644 index 0000000000..d8c421119a --- /dev/null +++ b/contrib/src/nettle/fetch_and_patch.bat @@ -0,0 +1,10 @@ +set BUILD=%SRC%..\build + +set REPOURL="https://github.com/ShiftMediaProject/nettle.git" + +mkdir %BUILD% +cd %BUILD% + +git clone %REPOURL% + +cd %SRC% \ No newline at end of file diff --git a/contrib/src/opendht/fetch_and_patch.bat b/contrib/src/opendht/fetch_and_patch.bat index 0611417052..c5b9794bec 100644 --- a/contrib/src/opendht/fetch_and_patch.bat +++ b/contrib/src/opendht/fetch_and_patch.bat @@ -1,5 +1,4 @@ -set BUILD=..\..\build -set SRC=%~dp0%~1 +set BUILD=%SRC%..\build set OPENDHT_VERSION=e7295bac7b57540905e287a37904c615de971392 set OPENDHT_URL="https://github.com/savoirfairelinux/opendht.git" diff --git a/contrib/src/pjproject/fetch_and_patch.bat b/contrib/src/pjproject/fetch_and_patch.bat index 6fad6094c2..5d85775a34 100644 --- a/contrib/src/pjproject/fetch_and_patch.bat +++ b/contrib/src/pjproject/fetch_and_patch.bat @@ -1,13 +1,12 @@ -set BUILD=..\..\build -set SRC=..\..\src +set BUILD=%SRC%..\build mkdir %BUILD% wget http://www.pjsip.org/release/2.5.5/pjproject-2.5.5.zip -unzip pjproject-2.5.5.zip -d ..\..\build +unzip pjproject-2.5.5.zip -d %BUILD% del pjproject-2.5.5.zip -rename ..\..\build\pjproject-2.5.5 pjproject +rename %BUILD%\pjproject-2.5.5 pjproject -cd ..\..\build\pjproject +cd %BUILD%\pjproject git apply --reject --whitespace=fix %SRC%\pjproject\intptr_t.patch git apply --reject --whitespace=fix %SRC%\pjproject\pj_win.patch diff --git a/contrib/src/zlib/fetch_and_patch.bat b/contrib/src/zlib/fetch_and_patch.bat new file mode 100644 index 0000000000..627e80316b --- /dev/null +++ b/contrib/src/zlib/fetch_and_patch.bat @@ -0,0 +1,10 @@ +set BUILD=%SRC%..\build + +set REPOURL="https://github.com/ShiftMediaProject/zlib.git" + +mkdir %BUILD% +cd %BUILD% + +git clone %REPOURL% + +cd %SRC% \ No newline at end of file -- GitLab