source: rtems/scripts/setup @ e46cd61

4.104.114.84.95
Last change on this file since e46cd61 was e46cd61, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 20, 1999 at 4:57:50 PM

Added RPM release numbers.

  • Property mode set to 100755
File size: 2.5 KB
Line 
1#!/bin/bash
2
3CFG=setup.cache
4
5# RTEMS tools setup
6
7test -f ./CFG || echo "restoring default setup.cache" && cp ./setup.def ./$CFG
8
9echo -n "loading setup from ./$CFG .."
10. ./$CFG
11echo "done"
12echo
13
14menu_setup()
15{
16while true;
17do
18  echo
19  echo "       Source packages setup"
20  echo
21  echo "0 binutils version        : $binutils_version"
22  echo "1 binutils patch version  : $binutils_patch_version"
23  echo "2 binutils rpm release    : $binutils_rpm_release"
24  echo "3 gcc version             : $gcc_version"
25  echo "4 gcc patch version       : $gcc_patch_version"
26  echo "5 newlib version          : $newlib_version"
27  echo "6 newlib patch version    : $newlib_patch_version"
28  echo "7 gcc/newlib rpm release  : $gccnewlib_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
33
34  echo -n "[0-9a] or any other key to quit >"
35  read sel
36  case $sel in
37  0) echo -n "BINUTILS source >"
38     read binutils_version ;;
39  1) echo -n "BINUTILS patch version >"
40     read binutils_patch_version ;;
41  2) echo -n "BINUTILS RPM release >"
42     read binutils_rpm_release ;;
43  3) echo -n "GCC source >"
44     read gcc_version ;;
45  4) echo -n "GCC patch version>"
46     read gcc_patch_version ;;
47  5) echo -n "NEWLIB source >"
48     read newlib_version ;;
49  6) echo -n "NEWLIB patch version>"
50     read newlib_patch_version ;;
51  7) echo -n "GCC/NEWLIB RPM release >"
52     read gccnewlib_rpm_release ;;
53  8) echo -n "GDB source >"
54     read GDB_SOURCE ;;
55  9) echo -n "GDB patch version>"
56     read gdb_patch_version ;;
57  a) echo -n "GDB RPM release >"
58     read gdb_rpm_release ;;
59  *) 
60     return 0 ;;
61  esac
62done
63}
64
65
66save_setup()
67{
68echo -n "saving setup to $CFG .."
69
70echo "# RTEMS tools setup" > $CFG
71echo "binutils_version=$binutils_version" >> $CFG
72echo "binutils_patch_version=$binutils_patch_version" >> $CFG
73echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
74echo "newlib_version=$newlib_version" >> $CFG
75echo "newlib_patch_version=$newlib_patch_version" >> $CFG
76echo "gcc_version=$gcc_version" >> $CFG
77echo "gcc_patch_version=$gcc_patch_version" >> $CFG
78echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
79echo "gdb_version=$gdb_version" >> $CFG
80echo "gdb_patch_version=$gdb_patch_version" >> $CFG
81echo "gdbrpm_release=$gdbrpm_release" >> $CFG
82
83echo " done"
84test -f Makefile || ./configure
85}
86
87menu_setup
88
89echo
90echo -n "Save setup [y|n] >"
91read sel
92case $sel in
93''|y*|Y*) save_setup ;;
94*) ;;
95esac
Note: See TracBrowser for help on using the repository browser.