2010-01-15 Zoltan Varga <vargaz@gmail.com>
[mono.git] / scripts / get-cygwin-deps.sh
1 if ! which wget > /dev/null 2>&1; then 
2         echo "You must have the 'wget' package installed. Its in the 'web' section in the cygwin setup program."
3         exit 1
4 fi
5
6 if ! which unzip > /dev/null 2>&1; then 
7         echo "You must have the 'unzip' package installed."
8         exit 1
9 fi
10
11 # Download glib for win32
12 rm -rf cygwin-deps
13 mkdir -p cygwin-deps
14 wget -P cygwin-deps ftp://ftp.gtk.org/pub/gtk/v2.6/win32/glib-2.6.6.zip || exit 1
15 wget -P cygwin-deps ftp://ftp.gtk.org/pub/gtk/v2.6/win32/glib-dev-2.6.6.zip || exit 1
16
17 cd cygwin-deps && unzip glib-2.6.6.zip && unzip glib-dev-2.6.6.zip