source: rtems/scripts-ada/setup @ a8bd1de

4.104.114.84.95
Last change on this file since a8bd1de was 71506054, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 27, 2000 at 11:48:28 PM

GNAT/RTEMS RPMs have built for the binutils/gnat/gcc combination
and appear to be close for gdb.

  • Property mode set to 100755
File size: 3.4 KB
Line 
1#!/bin/bash
2
3CFG=setup.cache
4
5# RTEMS tools setup
6
7if test ! -f ./$CFG;
8then
9 echo -n "restoring default setup.cache .." 
10 cp ./setup.def ./$CFG
11 echo " done"
12fi
13
14echo -n "loading setup from ./$CFG .."
15. ./$CFG
16echo " done"
17echo
18
19menu_setup()
20{
21while true;
22do
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
66done
67}
68
69
70save_setup()
71{
72echo -n "saving setup to $CFG .."
73
74echo "# RTEMS tools setup" > $CFG
75echo "binutils_version=$binutils_version" >> $CFG
76echo "binutils_patch_version=$binutils_patch_version" >> $CFG
77echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
78echo "newlib_version=$newlib_version" >> $CFG
79echo "newlib_patch_version=$newlib_patch_version" >> $CFG
80echo "gcc_version=$gcc_version" >> $CFG
81echo "gcc_patch_version=$gcc_patch_version" >> $CFG
82echo "gnat_version=$gnat_version" >> $CFG
83echo "gnat_patch_version=$gnat_patch_version" >> $CFG
84echo "gnatnewlib_rpm_release=$gnatnewlib_rpm_release" >> $CFG
85echo "gdb_version=$gdb_version" >> $CFG
86echo "gdb_patch_version=$gdb_patch_version" >> $CFG
87echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
88echo "rtems_version=$rtems_version" >> $CFG
89echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
90echo "rpm_build_root=$rpm_build_root" >> $CFG
91
92echo " done"
93test -f Makefile || ./configure
94}
95
96menu_setup
97
98echo
99echo -n "Save setup [y|n] >"
100read sel
101case $sel in
102''|y*|Y*) save_setup ;;
103*) ;;
104esac
Note: See TracBrowser for help on using the repository browser.