source: rtems/scripts/setup @ 7063e223

4.104.114.84.95
Last change on this file since 7063e223 was 7063e223, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 21, 1999 at 5:22:02 PM

Made the RTEMS version get substituted properly even though it is
not right yet.

Now can specify rpm_build_root via setup.

  • Property mode set to 100755
File size: 2.7 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 rpm build root          : $rpm_build_root"
38  echo
39
40  echo -n "[0-9ab] or any other key to quit >"
41  read sel
42  case $sel in
43  0) echo -n "BINUTILS source >"
44     read binutils_version ;;
45  1) echo -n "BINUTILS patch version >"
46     read binutils_patch_version ;;
47  2) echo -n "BINUTILS RPM release >"
48     read binutils_rpm_release ;;
49  3) echo -n "GCC source >"
50     read gcc_version ;;
51  4) echo -n "GCC patch version>"
52     read gcc_patch_version ;;
53  5) echo -n "NEWLIB source >"
54     read newlib_version ;;
55  6) echo -n "NEWLIB patch version>"
56     read newlib_patch_version ;;
57  7) echo -n "GCC/NEWLIB RPM release >"
58     read gccnewlib_rpm_release ;;
59  8) echo -n "GDB source >"
60     read GDB_SOURCE ;;
61  9) echo -n "GDB patch version>"
62     read gdb_patch_version ;;
63  a) echo -n "GDB RPM release >"
64     read gdb_rpm_release ;;
65  b) echo -n "RPM build root >"
66     read rpm_build_root ;;
67  *) 
68     return 0 ;;
69  esac
70done
71}
72
73
74save_setup()
75{
76echo -n "saving setup to $CFG .."
77
78echo "# RTEMS tools setup" > $CFG
79echo "binutils_version=$binutils_version" >> $CFG
80echo "binutils_patch_version=$binutils_patch_version" >> $CFG
81echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
82echo "newlib_version=$newlib_version" >> $CFG
83echo "newlib_patch_version=$newlib_patch_version" >> $CFG
84echo "gcc_version=$gcc_version" >> $CFG
85echo "gcc_patch_version=$gcc_patch_version" >> $CFG
86echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
87echo "gdb_version=$gdb_version" >> $CFG
88echo "gdb_patch_version=$gdb_patch_version" >> $CFG
89echo "gdb_rpm_release=$gdb_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.