source: rtems/scripts/setup @ 10629f7

4.104.114.84.95
Last change on this file since 10629f7 was 10629f7, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 20, 1999 at 3:29:12 PM

New version from Ralf.

  • Property mode set to 100755
File size: 1.9 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 "1 binutils version        : $binutils_version"
22  echo "2 binutils patch version  : $binutils_patch_version"
23  echo "3 gcc version             : $gcc_version"
24  echo "4 gcc patch version       : $gcc_patch_version"
25  echo "5 newlib version          : $newlib_version"
26  echo "6 newlib patch version    : $newlib_patch_version"
27  echo "7 gdb version             : $gdb_version"
28  echo "8 gdb patch version       : $gdb_patch_version"
29  echo
30
31  echo -n "[1-8] or any other key to quit >"
32  read sel
33  case $sel in
34  1) echo -n "BINUTILS source >"
35     read binutils_version ;;
36  2) echo -n "BINUTILS patch version >"
37     read binutils_patch_version ;;
38  3) echo -n "GCC source >"
39     read gcc_version ;;
40  4) echo -n "GCC patch version>"
41     read gcc_patch_version ;;
42  5) echo -n "NEWLIB source >"
43     read newlib_version ;;
44  6) echo -n "NEWLIB patch version>"
45     read newlib_patch_version ;;
46  7) echo -n "GDB source >"
47     read GDB_SOURCE ;;
48  8) echo -n "GDB patch version>"
49     read gdb_patch_version ;;
50  *) 
51     return 0 ;;
52  esac
53done
54}
55
56
57save_setup()
58{
59echo -n "saving setup to $CFG .."
60
61echo "# RTEMS tools setup" > $CFG
62echo "binutils_version=$binutils_version" >> $CFG
63echo "binutils_patch_version=$binutils_patch_version" >> $CFG
64echo "newlib_version=$newlib_version" >> $CFG
65echo "newlib_patch_version=$newlib_patch_version" >> $CFG
66echo "gcc_version=$gcc_version" >> $CFG
67echo "gcc_patch_version=$gcc_patch_version" >> $CFG
68echo "gdb_version=$gdb_version" >> $CFG
69echo "gdb_patch_version=$gdb_patch_version" >> $CFG
70
71echo " done"
72test -f Makefile || ./configure
73}
74
75menu_setup
76
77echo
78echo -n "Save setup [y|n] >"
79read sel
80case $sel in
81''|y*|Y*) save_setup ;;
82*) ;;
83esac
Note: See TracBrowser for help on using the repository browser.