Blame view

configure 1.04 KB
73f2ae9d   Geoffrey PREUD'HOMME   Outils de rédaction
1
2
3
4
  #!/usr/bin/env bash
  
  echo "Vérification de la configuration système..."
  
98814b45   Geoffrey PREUD'HOMME   Outils pour assem...
5
6
7
8
  echo "Astuce : Pour tout installer d'un coup : sudo apt-get install build-essential nodejs npm avrdude"
  
  echo "Vérification des dépendances pour la compilation du compte-rendu..."
  
c79ef7bb   Geoffrey PREUD'HOMME   Instructions outi...
9
10
11
12
13
14
  if ! which make &> /dev/null
  then
      echo "Veuillez installer Make (sudo apt-get install build-essential)"
      exit 1
  fi
  
73f2ae9d   Geoffrey PREUD'HOMME   Outils de rédaction
15
16
  if ! which node &> /dev/null
  then
98814b45   Geoffrey PREUD'HOMME   Outils pour assem...
17
      echo "Veuillez installer NodeJS (sudo apt-get install nodejs)"
73f2ae9d   Geoffrey PREUD'HOMME   Outils de rédaction
18
19
20
21
22
23
24
25
26
      exit 1
  fi
  
  if ! which npm &> /dev/null
  then
      echo "Veuillez installer NPM (sudo apt-get install npm)"
      exit 1
  fi
  
98814b45   Geoffrey PREUD'HOMME   Outils pour assem...
27
28
  echo "Vérification des dépendances pour la compilation des programmes Atmega 2560..."
  
2962f7e6   Geoffrey PREUD'HOMME   Outils pour compi...
29
30
31
32
33
34
  if ! which wine &> /dev/null
  then
      echo "Veuillez installer avrdude (sudo apt-get install wine)"
      exit 1
  fi
  
98814b45   Geoffrey PREUD'HOMME   Outils pour assem...
35
36
37
38
39
40
  if ! which avrdude &> /dev/null
  then
      echo "Veuillez installer avrdude (sudo apt-get install avrdude)"
      exit 1
  fi
  
2962f7e6   Geoffrey PREUD'HOMME   Outils pour compi...
41
  echo "Installation des bibliothèques pour la compilation du compte-rendu..."
73f2ae9d   Geoffrey PREUD'HOMME   Outils de rédaction
42
  
98814b45   Geoffrey PREUD'HOMME   Outils pour assem...
43
  echo $(cd scripts; npm install)
73f2ae9d   Geoffrey PREUD'HOMME   Outils de rédaction
44
  
c79ef7bb   Geoffrey PREUD'HOMME   Instructions outi...
45
  echo "Tout baigne !"