Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't redownload existing files. #29

Open
wants to merge 1 commit into from

1 participant

Rickard Dybeck
Rickard Dybeck

Add checks if files exist before downloading to prevent having to re-download in case of error.

Also update to existing version of libpng (libpng-1.5.13.tar.gz)

Rickard Dybeck alde Don't redownload existing files.
Also update to existing version of libpng
e6265f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 20, 2012
  1. Rickard Dybeck

    Don't redownload existing files.

    alde authored
    Also update to existing version of libpng
This page is out of date. Refresh to see the latest.
Showing with 36 additions and 10 deletions.
  1. +36 −10 install_im.sh
46 install_im.sh
View
@@ -56,15 +56,41 @@ function decompress_applications () {
}
# Before running anything try to download all requires files, saving time.
-try_download http://"$SF_MIRROR".dl.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz
-try_download http://"$SF_MIRROR".dl.sourceforge.net/project/wvware/libwmf/0.2.8.4/libwmf-0.2.8.4.tar.gz
-try_download http://www.ijg.org/files/jpegsrc.v8d.tar.gz
-try_download http://download.osgeo.org/libtiff/tiff-4.0.1.tar.gz
-try_download http://"$SF_MIRROR".dl.sourceforge.net/project/lcms/lcms/2.3/lcms2-2.3.tar.gz
-try_download ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.10.tar.gz
-try_download http://download.savannah.gnu.org/releases/freetype/freetype-2.4.9.tar.gz
-try_download http://ghostscript.googlecode.com/files/ghostscript-9.00.tar.gz
-try_download ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
+if [ ! -e "ghostscript-fonts-std-8.11.tar.gz" ] ; then
+ try_download http://"$SF_MIRROR".dl.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz
+fi
+
+if [ ! -e "libwmf-0.2.8.4.tar.gz" ] ; then
+ try_download http://"$SF_MIRROR".dl.sourceforge.net/project/wvware/libwmf/0.2.8.4/libwmf-0.2.8.4.tar.gz
+fi
+
+if [ ! -e "jpegsrc.v8d.tar.gz" ] ; then
+ try_download http://www.ijg.org/files/jpegsrc.v8d.tar.gz
+fi
+
+if [ ! -e "tiff-4.0.1.tar.gz" ] ; then
+ try_download http://download.osgeo.org/libtiff/tiff-4.0.1.tar.gz
+fi
+
+if [ ! -e "lcms2-2.3.tar.gz" ] ; then
+ try_download http://"$SF_MIRROR".dl.sourceforge.net/project/lcms/lcms/2.3/lcms2-2.3.tar.gz
+fi
+
+if [ ! -e "libpng-1.5.13.tar.gz" ] ; then
+ try_download ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.13.tar.gz
+fi
+
+if [ ! -e "freetype-2.4.9.tar.gz" ] ; then
+ try_download http://download.savannah.gnu.org/releases/freetype/freetype-2.4.9.tar.gz
+fi
+
+if [ ! -e "ghostscript-9.00.tar.gz" ] ; then
+ try_download http://ghostscript.googlecode.com/files/ghostscript-9.00.tar.gz
+fi
+
+if [ ! -e "ImageMagick.tar.gz" ] ; then
+ try_download ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
+fi
# Decompress applications.
decompress_applications
@@ -73,7 +99,7 @@ echo "Starting..."
# LibPNG.
# Official PNG reference library.
-cd libpng-1.5.10
+cd libpng-1.5.13
./configure --prefix=$CONFIGURE_PREFIX
make
sudo make install
Something went wrong with that request. Please try again.