source: rtems/scripts-ada/setup @ 1e3f463

4.104.114.84.95
Last change on this file since 1e3f463 was 1e3f463, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 13, 2001 at 4:35:55 PM

2001-09-13 Joel Sherrill <joel@…>

  • configure.in: Add RTEMS specific version of EXEEXT test.
  • mkgdbspec.in, mkgnatnewlibspec.in, gdb/gdb.spec.in, gnatnewlib/gnatnewlib.spec.in: Change to Target_alias to avoid conflicts with new autoconf/automake.
  • setup, setup.def, mkgnatnewlibspec.in: Add gnat_newlib_patch_version variable.
  • gnatnewlib/Makefile.am: Add i386-rtemscoff target in attempt to build it.
  • Property mode set to 100755
File size: 3.6 KB
RevLine 
[64ab2e9]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
[1e3f463]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"
[64ab2e9]43  echo
44
[1e3f463]45  echo -n "[0-9a-g] or any other key to quit >"
[64ab2e9]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 ;;
[1e3f463]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 ;;
[64ab2e9]65  *) 
66     return 0 ;;
67  esac
68done
69}
70
71
72save_setup()
73{
74echo -n "saving setup to $CFG .."
75
76echo "# RTEMS tools setup" > $CFG
77echo "binutils_version=$binutils_version" >> $CFG
78echo "binutils_patch_version=$binutils_patch_version" >> $CFG
79echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
80echo "newlib_version=$newlib_version" >> $CFG
81echo "newlib_patch_version=$newlib_patch_version" >> $CFG
82echo "gcc_version=$gcc_version" >> $CFG
83echo "gcc_patch_version=$gcc_patch_version" >> $CFG
[71506054]84echo "gnat_version=$gnat_version" >> $CFG
85echo "gnat_patch_version=$gnat_patch_version" >> $CFG
[1e3f463]86echo "gnat_newlib_patch_version=$gnat_newlib_patch_version" >> $CFG
[71506054]87echo "gnatnewlib_rpm_release=$gnatnewlib_rpm_release" >> $CFG
[64ab2e9]88echo "gdb_version=$gdb_version" >> $CFG
89echo "gdb_patch_version=$gdb_patch_version" >> $CFG
90echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
91echo "rtems_version=$rtems_version" >> $CFG
92echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
93echo "rpm_build_root=$rpm_build_root" >> $CFG
94
95echo " done"
96test -f Makefile || ./configure
97}
98
99menu_setup
100
101echo
102echo -n "Save setup [y|n] >"
103read sel
104case $sel in
105''|y*|Y*) save_setup ;;
106*) ;;
107esac
Note: See TracBrowser for help on using the repository browser.