Changeset 3270


Ignore:
Timestamp:
Dec 12, 2014 12:18:11 AM (6 years ago)
Author:
tkr
Message:

Switching to getting ASL from github repo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/ASL/trunk/get.ASL

    r3095 r3270  
    1818fi
    1919
    20 coinasl=solvers-20130815.tgz
     20coinasl=20141208
    2121
    2222echo " "
     
    2424echo " "
    2525
    26 rm -f solvers.tgz
     26rm -f $coinasl.tar.gz
    2727
    28 echo "Downloading the source code from projects.coin-or.org..."
    29 if $wgetcmd http://www.coin-or.org/BuildTools/ASL/$coinasl ;
     28echo "Downloading the source code from Github..."
     29if $wgetcmd https://github.com/ampl/mp/archive/$coinasl.tar.gz ;
    3030then
    31   mv $coinasl solvers.tgz
     31  echo "Download finished."
    3232else
    3333  echo
    34   echo "Failed, try downloading the source code from www.ampl.com..."
    35   $wgetcmd http://www.ampl.com/netlib/ampl/solvers.tgz
     34  echo "Download failed...exiting"
    3635fi
    3736
     
    3938
    4039echo "Unpacking the source code..."
    41 gunzip -f solvers.tgz
    42 tar xf solvers.tar
    43 
    44 #echo "Uncompressing the source files..."
    45 #gunzip -fr solvers
     40gunzip -f $coinasl.tar.gz
     41tar xf $coinasl.tar
     42mv mp-$coinasl/src/asl/solvers .
     43rm -rf mp-$coinasl
    4644
    4745echo "Adding No_dtoa to CFLAGS..."
     
    5250
    5351echo "Deleting the tar file..."
    54 rm solvers.tar
     52rm $coinasl.tar
    5553
    5654echo " "
Note: See TracChangeset for help on using the changeset viewer.