source: rtems/scripts/setup @ 674ded3

4.104.114.84.95
Last change on this file since 674ded3 was 674ded3, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 12, 2004 at 3:17:52 PM

2004-02-12 Ralf Corsepius <corsepiu@…>

  • configure.ac, setup, setup.def: Remove now unused vars.
  • Property mode set to 100755
File size: 3.3 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 "8 gdb version             : $gdb_version"
30  echo "9 gdb patch version       : $gdb_patch_version"
31  echo "a gdb rpm release         : $gdb_rpm_release"
32  echo "b rtems version           : $rtems_version"
33  echo "c rtems rpm release       : $rtems_rpm_release"
34  echo "d rpm build root          : $rpm_build_root"
35  echo "e gcc3 version             : $gcc3_version"
36  echo "f gcc3 patch version       : $gcc3_patch_version"
37  echo "g gcc3 newlib version      : $gcc3newlib_version"
38  echo "h gcc3 newlib patch version: $gcc3newlib_patch_version"
39  echo "i gcc3/newlib rpm release  : $gcc3newlib_rpm_release"
40  echo
41
42  echo -n "[0-9a-d] or any other key to quit >"
43  read sel
44  case $sel in
45  0) echo -n "BINUTILS source >"
46     read binutils_version ;;
47  1) echo -n "BINUTILS patch version >"
48     read binutils_patch_version ;;
49  2) echo -n "BINUTILS RPM release >"
50     read binutils_rpm_release ;;
51  8) echo -n "GDB source >"
52     read gdb_version ;;
53  9) echo -n "GDB patch version>"
54     read gdb_patch_version ;;
55  a) echo -n "GDB RPM release >"
56     read gdb_rpm_release ;;
57  b) echo -n "RTEMS source >"
58     read rtems_version ;;
59  c) echo -n "RTEMS RPM release >"
60     read rtems_rpm_release ;;
61  d) echo -n "RPM build root >"
62     read rpm_build_root ;;
63  e) echo -n "GCC3 source >"
64     read gcc3_version ;;
65  f) echo -n "GCC3 patch version>"
66     read gcc3_patch_version ;;
67  g) echo -n "NEWLIB source >"
68     read gcc3newlib_version ;;
69  h) echo -n "NEWLIB patch version>"
70     read gcc3newlib_patch_version ;;
71  i) echo -n "GCC3/NEWLIB RPM release >"
72     read gcc3newlib_rpm_release ;;
73  *) 
74     return 0 ;;
75  esac
76done
77}
78
79
80save_setup()
81{
82echo -n "saving setup to $CFG .."
83
84echo "# RTEMS tools setup" > $CFG
85echo "binutils_version=$binutils_version" >> $CFG
86echo "binutils_patch_version=$binutils_patch_version" >> $CFG
87echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
88echo "newlib_version=$newlib_version" >> $CFG
89echo "newlib_patch_version=$newlib_patch_version" >> $CFG
90echo "gcc_version=$gcc_version" >> $CFG
91echo "gcc_patch_version=$gcc_patch_version" >> $CFG
92echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
93echo "gdb_version=$gdb_version" >> $CFG
94echo "gdb_patch_version=$gdb_patch_version" >> $CFG
95echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
96echo "rtems_version=$rtems_version" >> $CFG
97echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
98echo "rpm_build_root=$rpm_build_root" >> $CFG
99echo "gcc3newlib_version=$gcc3newlib_version" >> $CFG
100echo "gcc3newlib_patch_version=$gcc3newlib_patch_version" >> $CFG
101echo "gcc3_version=$gcc3_version" >> $CFG
102echo "gcc3_patch_version=$gcc3_patch_version" >> $CFG
103echo "gcc3newlib_rpm_release=$gcc3newlib_rpm_release" >> $CFG
104
105echo " done"
106test -f Makefile || ./configure
107}
108
109menu_setup
110
111echo
112echo -n "Save setup [y|n] >"
113read sel
114case $sel in
115''|y*|Y*) save_setup ;;
116*) ;;
117esac
Note: See TracBrowser for help on using the repository browser.