source: rtems/scripts/setup @ df1f734

4.104.114.84.95
Last change on this file since df1f734 was df1f734, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 3, 2002 at 5:58:26 PM

2002-04-03 Ralf Corsepius <corsepiu@…>

  • mkbinutilspec.in: Add support for empty patch-version (no patch).
  • mkgcc3newlibspec.in: Ditto.
  • setup: Fix gcc3*_versions handling.
  • setup.def: binutils_patch_version=.
  • binutils/binutils.add: Reflect changes to mkbinutilspec.in, Use "%{_target_os}" != "%{_build_os}" to detect cross-building.
  • binutils/target-binutils.add: Comment out c++filt.
  • gcc3newlib/base-gcc.add: Remove duplicate libm.info.
  • gcc3newlib/gccnewlib.add: Reflect changes to mkgcc3newlibspec.in. Use "%{_target_os}" != "%{_build_os}" to detect cross-building. Comment out gcc-2.95.x hacks. Remove *.la from installed files.
  • gcc3newlib/gccnewlib_c_only.spec.in: Remove.
  • Property mode set to 100755
File size: 3.9 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 "       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 newlib version          : $newlib_version"
32  echo "6 newlib patch version    : $newlib_patch_version"
33  echo "7 gcc/newlib rpm release  : $gccnewlib_rpm_release"
34  echo "8 gdb version             : $gdb_version"
35  echo "9 gdb patch version       : $gdb_patch_version"
36  echo "a gdb rpm release         : $gdb_rpm_release"
37  echo "b rtems version           : $rtems_version"
38  echo "c rtems rpm release       : $rtems_rpm_release"
39  echo "d rpm build root          : $rpm_build_root"
40  echo "e gcc3 version             : $gcc3_version"
41  echo "f gcc3 patch version       : $gcc3_patch_version"
42  echo "g gcc3 newlib version      : $gcc3newlib_version"
43  echo "h gcc3 newlib patch version: $gcc3newlib_patch_version"
44  echo "i gcc3/newlib rpm release  : $gcc3newlib_rpm_release"
45  echo
46
47  echo -n "[0-9a-d] or any other key to quit >"
48  read sel
49  case $sel in
50  0) echo -n "BINUTILS source >"
51     read binutils_version ;;
52  1) echo -n "BINUTILS patch version >"
53     read binutils_patch_version ;;
54  2) echo -n "BINUTILS RPM release >"
55     read binutils_rpm_release ;;
56  3) echo -n "GCC source >"
57     read gcc_version ;;
58  4) echo -n "GCC patch version>"
59     read gcc_patch_version ;;
60  5) echo -n "NEWLIB source >"
61     read newlib_version ;;
62  6) echo -n "NEWLIB patch version>"
63     read newlib_patch_version ;;
64  7) echo -n "GCC/NEWLIB RPM release >"
65     read gccnewlib_rpm_release ;;
66  8) echo -n "GDB source >"
67     read gdb_version ;;
68  9) echo -n "GDB patch version>"
69     read gdb_patch_version ;;
70  a) echo -n "GDB RPM release >"
71     read gdb_rpm_release ;;
72  b) echo -n "RTEMS source >"
73     read rtems_version ;;
74  c) echo -n "RTEMS RPM release >"
75     read rtems_rpm_release ;;
76  d) echo -n "RPM build root >"
77     read rpm_build_root ;;
78  e) echo -n "GCC3 source >"
79     read gcc3_version ;;
80  f) echo -n "GCC3 patch version>"
81     read gcc3_patch_version ;;
82  g) echo -n "NEWLIB source >"
83     read gcc3newlib_version ;;
84  h) echo -n "NEWLIB patch version>"
85     read gcc3newlib_patch_version ;;
86  i) echo -n "GCC3/NEWLIB RPM release >"
87     read gcc3newlib_rpm_release ;;
88  *) 
89     return 0 ;;
90  esac
91done
92}
93
94
95save_setup()
96{
97echo -n "saving setup to $CFG .."
98
99echo "# RTEMS tools setup" > $CFG
100echo "binutils_version=$binutils_version" >> $CFG
101echo "binutils_patch_version=$binutils_patch_version" >> $CFG
102echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
103echo "newlib_version=$newlib_version" >> $CFG
104echo "newlib_patch_version=$newlib_patch_version" >> $CFG
105echo "gcc_version=$gcc_version" >> $CFG
106echo "gcc_patch_version=$gcc_patch_version" >> $CFG
107echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
108echo "gdb_version=$gdb_version" >> $CFG
109echo "gdb_patch_version=$gdb_patch_version" >> $CFG
110echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
111echo "rtems_version=$rtems_version" >> $CFG
112echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
113echo "rpm_build_root=$rpm_build_root" >> $CFG
114echo "gcc3newlib_version=$gcc3newlib_version" >> $CFG
115echo "gcc3newlib_patch_version=$gcc3newlib_patch_version" >> $CFG
116echo "gcc3_version=$gcc3_version" >> $CFG
117echo "gcc3_patch_version=$gcc3_patch_version" >> $CFG
118echo "gcc3newlib_rpm_release=$gcc3newlib_rpm_release" >> $CFG
119
120echo " done"
121test -f Makefile || ./configure
122}
123
124menu_setup
125
126echo
127echo -n "Save setup [y|n] >"
128read sel
129case $sel in
130''|y*|Y*) save_setup ;;
131*) ;;
132esac
Note: See TracBrowser for help on using the repository browser.