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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [scripts-ada/] [setup] - Blame information for rev 1771

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

Line No. Rev Author Line
1 1026 ivang
#!/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 patch version : $gnat_newlib_patch_version"
36
  echo "a gnat/newlib rpm release   : $gnatnewlib_rpm_release"
37
  echo "b gdb version               : $gdb_version"
38
  echo "c gdb patch version         : $gdb_patch_version"
39
  echo "d gdb rpm release           : $gdb_rpm_release"
40
  echo "e rtems version             : $rtems_version"
41
  echo "f rtems rpm release         : $rtems_rpm_release"
42
  echo "g rpm build root            : $rpm_build_root"
43
  echo
44
 
45
  echo -n "[0-9a-g] or any other key to quit >"
46
  read sel
47
  case $sel in
48
  0) echo -n "BINUTILS source >"          ; read binutils_version ;;
49
  1) echo -n "BINUTILS patch version >"   ; read binutils_patch_version ;;
50
  2) echo -n "BINUTILS RPM release >"     ; read binutils_rpm_release ;;
51
  3) echo -n "GCC source >"               ; read gcc_version ;;
52
  4) echo -n "GCC patch version>"         ; read gcc_patch_version ;;
53
  5) echo -n "GNAT source >"              ; read gnat_version ;;
54
  6) echo -n "GNAT patch version>"        ; read gnat_patch_version ;;
55
  7) echo -n "NEWLIB source >"            ; read newlib_version ;;
56
  8) echo -n "NEWLIB patch version>"      ; read newlib_patch_version ;;
57
  9) echo -n "GNAT NEWLIB patch version>" ; read gnat_newlib_patch_version ;;
58
  a) echo -n "GNAT/NEWLIB RPM release >"  ; read gnatnewlib_rpm_release ;;
59
  b) echo -n "GDB source >"               ; read gdb_version ;;
60
  c) echo -n "GDB patch version>"         ; read gdb_patch_version ;;
61
  d) echo -n "GDB RPM release >"          ; read gdb_rpm_release ;;
62
  e) echo -n "RTEMS source >"             ; read rtems_version ;;
63
  f) echo -n "RTEMS RPM release >"        ; read rtems_rpm_release ;;
64
  g) echo -n "RPM build root >"           ; read rpm_build_root ;;
65
  *)
66
     return 0 ;;
67
  esac
68
done
69
}
70
 
71
 
72
save_setup()
73
{
74
echo -n "saving setup to $CFG .."
75
 
76
echo "# RTEMS tools setup" > $CFG
77
echo "binutils_version=$binutils_version" >> $CFG
78
echo "binutils_patch_version=$binutils_patch_version" >> $CFG
79
echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
80
echo "newlib_version=$newlib_version" >> $CFG
81
echo "newlib_patch_version=$newlib_patch_version" >> $CFG
82
echo "gcc_version=$gcc_version" >> $CFG
83
echo "gcc_patch_version=$gcc_patch_version" >> $CFG
84
echo "gnat_version=$gnat_version" >> $CFG
85
echo "gnat_patch_version=$gnat_patch_version" >> $CFG
86
echo "gnat_newlib_patch_version=$gnat_newlib_patch_version" >> $CFG
87
echo "gnatnewlib_rpm_release=$gnatnewlib_rpm_release" >> $CFG
88
echo "gdb_version=$gdb_version" >> $CFG
89
echo "gdb_patch_version=$gdb_patch_version" >> $CFG
90
echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
91
echo "rtems_version=$rtems_version" >> $CFG
92
echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
93
echo "rpm_build_root=$rpm_build_root" >> $CFG
94
 
95
echo " done"
96
test -f Makefile || ./configure
97
}
98
 
99
menu_setup
100
 
101
echo
102
echo -n "Save setup [y|n] >"
103
read sel
104
case $sel in
105
''|y*|Y*) save_setup ;;
106
*) ;;
107
esac

powered by: WebSVN 2.1.0

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