OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [scripts-ada/] [setup] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#!/bin/bash
2
 
3
CFG=setup.cache
4
 
5
# RTEMS tools setup
6
 
7
if test ! -f ./$CFG;
8
then
9
 echo -n "restoring default setup.cache .."
10
 cp ./setup.def ./$CFG
11
 echo " done"
12
fi
13
 
14
echo -n "loading setup from ./$CFG .."
15
. ./$CFG
16
echo " done"
17
echo
18
 
19
menu_setup()
20
{
21
while true;
22
do
23
  echo
24
  echo "       GNAT/RTEMS Source packages setup"
25
  echo
26
  echo "0 binutils version         : $binutils_version"
27
  echo "1 binutils patch version   : $binutils_patch_version"
28
  echo "2 binutils rpm release     : $binutils_rpm_release"
29
  echo "3 gcc version              : $gcc_version"
30
  echo "4 gcc patch version        : $gcc_patch_version"
31
  echo "5 gnat version             : $gnat_version"
32
  echo "6 gnat patch version       : $gnat_patch_version"
33
  echo "7 newlib version           : $newlib_version"
34
  echo "8 newlib patch version     : $newlib_patch_version"
35
  echo "9 gnat/newlib rpm release  : $gnatnewlib_rpm_release"
36
  echo "a gdb version              : $gdb_version"
37
  echo "b gdb patch version        : $gdb_patch_version"
38
  echo "c gdb rpm release          : $gdb_rpm_release"
39
  echo "d rtems version            : $rtems_version"
40
  echo "e rtems rpm release        : $rtems_rpm_release"
41
  echo "f rpm build root           : $rpm_build_root"
42
  echo
43
 
44
  echo -n "[0-9a-f] or any other key to quit >"
45
  read sel
46
  case $sel in
47
  0) echo -n "BINUTILS source >"          ; read binutils_version ;;
48
  1) echo -n "BINUTILS patch version >"   ; read binutils_patch_version ;;
49
  2) echo -n "BINUTILS RPM release >"     ; read binutils_rpm_release ;;
50
  3) echo -n "GCC source >"               ; read gcc_version ;;
51
  4) echo -n "GCC patch version>"         ; read gcc_patch_version ;;
52
  5) echo -n "GNAT source >"              ; read gnat_version ;;
53
  6) echo -n "GNAT patch version>"        ; read gnat_patch_version ;;
54
  7) echo -n "NEWLIB source >"            ; read newlib_version ;;
55
  8) echo -n "NEWLIB patch version>"      ; read newlib_patch_version ;;
56
  9) echo -n "GNAT/NEWLIB RPM release >"  ; read gnatnewlib_rpm_release ;;
57
  a) echo -n "GDB source >"               ; read gdb_version ;;
58
  b) echo -n "GDB patch version>"         ; read gdb_patch_version ;;
59
  c) echo -n "GDB RPM release >"          ; read gdb_rpm_release ;;
60
  d) echo -n "RTEMS source >"             ; read rtems_version ;;
61
  e) echo -n "RTEMS RPM release >"        ; read rtems_rpm_release ;;
62
  f) echo -n "RPM build root >"           ; read rpm_build_root ;;
63
  *)
64
     return 0 ;;
65
  esac
66
done
67
}
68
 
69
 
70
save_setup()
71
{
72
echo -n "saving setup to $CFG .."
73
 
74
echo "# RTEMS tools setup" > $CFG
75
echo "binutils_version=$binutils_version" >> $CFG
76
echo "binutils_patch_version=$binutils_patch_version" >> $CFG
77
echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
78
echo "newlib_version=$newlib_version" >> $CFG
79
echo "newlib_patch_version=$newlib_patch_version" >> $CFG
80
echo "gcc_version=$gcc_version" >> $CFG
81
echo "gcc_patch_version=$gcc_patch_version" >> $CFG
82
echo "gnat_version=$gnat_version" >> $CFG
83
echo "gnat_patch_version=$gnat_patch_version" >> $CFG
84
echo "gnatnewlib_rpm_release=$gnatnewlib_rpm_release" >> $CFG
85
echo "gdb_version=$gdb_version" >> $CFG
86
echo "gdb_patch_version=$gdb_patch_version" >> $CFG
87
echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
88
echo "rtems_version=$rtems_version" >> $CFG
89
echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
90
echo "rpm_build_root=$rpm_build_root" >> $CFG
91
 
92
echo " done"
93
test -f Makefile || ./configure
94
}
95
 
96
menu_setup
97
 
98
echo
99
echo -n "Save setup [y|n] >"
100
read sel
101
case $sel in
102
''|y*|Y*) save_setup ;;
103
*) ;;
104
esac

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.