source: tol/building/Linux/download_default_packages.sh

devel
Last change on this file was ada6d64, checked in by Pedro Gea <pgea@…>, 11 years ago

Refs #1880
Se eliminan los antiguos scripts para 32 o 64 bits.
Se rescatan los scripts para descargar los paquetes por defecto aunque ya no es necesario su uso.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7118 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2#************************************************************
3# Download TOL Default Packages to the installation folder.
4# /!\ Not necessary any more. TOL CMake already do that.
5#************************************************************
6
7MACHINE_TYPE=`uname -m`
8if [ ${MACHINE_TYPE} = 'x86_64' ]; then
9  tol_platform=Linux32GNU
10else
11  tol_platform=Linux64GNU
12fi
13
14echo "Download default packages for $tol_platform"
15echo
16
17dest=/usr/local/tol3.2-release/bin/stdlib/DefaultPackages
18if ! [ -d "$dest" ]; then
19  echo "/!\ Cannot find '$dest'"
20  exit 1
21fi
22
23# == WGET ===============================
24# wget version should have option --content-disposition.
25cd $dest
26
27# Deletes previous packages if they exist.
28sudo rm -f *.zip*
29
30echo "### Downloading StdLib ###"
31sudo wget --content-disposition "http://packages.tol-project.org/OfficialTolArchiveNetwork/repository.php?action=download&format=attachment&tol_package_version=4&package=StdLib"
32
33echo "### Downloading TclCore ###"
34sudo wget --content-disposition "http://packages.tol-project.org/OfficialTolArchiveNetwork/repository.php?action=download&format=attachment&tol_package_version=4&package=TclCore%23$tol_platform"
35# =======================================
36 
37ok=1
38
39if ! [ -f StdLib.*.*.zip ]; then
40  ok=0
41  ls $dest
42  echo "/!\ Package StdLib cannot be downloaded."
43fi
44if ! [ -f TclCore#$tol_platform.*.*.zip ]; then
45  ok=0
46  echo "/!\ Package TclCore cannot be downloaded for '$tol_platform'"
47fi
48
49if [ "$ok" = "1" ]; then
50  echo "Default packages correctly downloaded."
51  exit 0
52fi
53
54exit 2
Note: See TracBrowser for help on using the repository browser.