Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 81a6cb3

Browse files
author
dirk
committed
Added .gitignore file.
Added option to clone repositories from another url.
1 parent 2a3696e commit 81a6cb3

File tree

4 files changed

+72
-41
lines changed

4 files changed

+72
-41
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/bzlib
2+
/cairo
3+
/contrib
4+
/croco
5+
/exr
6+
/ffi
7+
/glib
8+
/ImageMagick
9+
/jbig
10+
/jp2
11+
/jpeg
12+
/lcms
13+
/librsvg
14+
/libxml
15+
/lqr
16+
/openjpeg
17+
/pango
18+
/pixman
19+
/png
20+
/tiff
21+
/ttf
22+
/VisualMagick
23+
/webp
24+
/win2k
25+
/zlib

AppVeyor/Install.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22

33
cd ..
4-
call CloneRepositories.cmd shallow
4+
call CloneRepositories.cmd https://github.com/ImageMagick shallow
55
if not exist "C:\Program Files (x86)\Inno Setup 5" choco install innosetup -y -version 5.5.2
66
if exist "C:\Strawberry-x86" goto done
77
choco install strawberryperl -y -x86 -version 5.20.1.1

CloneRepositories.cmd

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
@echo off
22

3-
set type="full"
4-
if not "%1"=="" set type=%1
3+
set REPOS="http://git.imagemagick.org/repos/"
4+
if not "%1"=="" set REPOS=%1
55

6-
set bash="%PROGRAMFILES%\Git\bin\bash.exe"
7-
if exist %bash% goto execute
6+
set TYPE="full"
7+
if not "%2"=="" set TYPE=%2
8+
9+
set BASH="%PROGRAMFILES%\Git\bin\bash.exe"
10+
if exist %BASH% goto EXECUTE
811

912
set bash="%PROGRAMFILES(x86)%\Git\bin\bash.exe"
10-
if exist %bash% goto execute
13+
if exist %BASH% goto EXECUTE
1114

1215
echo Failed to find bash.exe
13-
echo %bash%
16+
echo %BASH%
1417
exit /b 1
1518

16-
:execute
17-
%bash% --login -i -c "./CloneRepositories.sh %type%"
19+
:EXECUTE
20+
%BASH% --login -i -c "./CloneRepositories.sh %REPOS% %TYPE%"

CloneRepositories.sh

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,54 @@
33
clone_repository()
44
{
55
echo ''
6-
echo "Cloning $2"
6+
echo "Cloning $3"
77

88
branch="master"
9-
10-
dir="$2"
119
if [ ! -z "$4" ]; then
12-
dir="$4"
10+
branch="$4"
11+
fi
12+
13+
dir="$3"
14+
if [ ! -z "$5" ]; then
15+
dir="$5"
1316
fi
1417

15-
if [ "$1" == "full" ]; then
18+
if [ "$2" == "full" ]; then
1619
if [ ! -d "$dir" ]; then
17-
git clone -b $branch https://github.com/ImageMagick/$2.git $dir
20+
git clone -b $branch $1/$3.git $dir
1821
fi
1922
cd $dir
2023
git pull
2124
cd ..
2225
else
2326
if [ ! -d "$dir" ]; then
24-
git clone -b $branch --depth 1 https://github.com/ImageMagick/$2.git $dir
27+
git clone -b $branch --depth 1 $1/$3.git $dir
2528
fi
2629
fi
2730
}
2831

29-
clone_repository $1 'bzlib'
30-
clone_repository $1 'cairo'
31-
clone_repository $1 'contrib'
32-
clone_repository $1 'croco'
33-
clone_repository $1 'exr'
34-
clone_repository $1 'ffi'
35-
clone_repository $1 'glib'
36-
clone_repository $1 'ImageMagick'
37-
clone_repository $1 'jbig'
38-
clone_repository $1 'jp2'
39-
clone_repository $1 'jpeg'
40-
clone_repository $1 'lcms'
41-
clone_repository $1 'librsvg'
42-
clone_repository $1 'libxml'
43-
clone_repository $1 'lqr'
44-
clone_repository $1 'openjpeg'
45-
clone_repository $1 'pango'
46-
clone_repository $1 'pixman'
47-
clone_repository $1 'png'
48-
clone_repository $1 'tiff'
49-
clone_repository $1 'ttf'
50-
clone_repository $1 'VisualMagick'
51-
clone_repository $1 'webp'
52-
clone_repository $1 'win2k'
53-
clone_repository $1 'zlib'
32+
clone_repository $1 $2 'bzlib'
33+
clone_repository $1 $2 'cairo'
34+
clone_repository $1 $2 'contrib'
35+
clone_repository $1 $2 'croco'
36+
clone_repository $1 $2 'exr'
37+
clone_repository $1 $2 'ffi'
38+
clone_repository $1 $2 'glib'
39+
clone_repository $1 $2 'ImageMagick'
40+
clone_repository $1 $2 'jbig'
41+
clone_repository $1 $2 'jp2'
42+
clone_repository $1 $2 'jpeg-turbo' 'master' 'jpeg'
43+
clone_repository $1 $2 'lcms'
44+
clone_repository $1 $2 'librsvg'
45+
clone_repository $1 $2 'libxml'
46+
clone_repository $1 $2 'lqr'
47+
clone_repository $1 $2 'openjpeg'
48+
clone_repository $1 $2 'pango'
49+
clone_repository $1 $2 'pixman'
50+
clone_repository $1 $2 'png'
51+
clone_repository $1 $2 'tiff'
52+
clone_repository $1 $2 'ttf'
53+
clone_repository $1 $2 'VisualMagick'
54+
clone_repository $1 $2 'webp'
55+
clone_repository $1 $2 'win2k'
56+
clone_repository $1 $2 'zlib'

0 commit comments

Comments
 (0)