source: rtems/scripts/setup @ b41a0d1

4.104.114.84.95
Last change on this file since b41a0d1 was b41a0d1, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 22, 1999 at 2:30:41 PM

RTEMS RPM basically working.

  • Property mode set to 100755
File size: 3.0 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
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  3) echo -n "GCC source >"
52     read gcc_version ;;
53  4) echo -n "GCC patch version>"
54     read gcc_patch_version ;;
55  5) echo -n "NEWLIB source >"
56     read newlib_version ;;
57  6) echo -n "NEWLIB patch version>"
58     read newlib_patch_version ;;
59  7) echo -n "GCC/NEWLIB RPM release >"
60     read gccnewlib_rpm_release ;;
61  8) echo -n "GDB source >"
62     read gdb_version ;;
63  9) echo -n "GDB patch version>"
64     read gdb_patch_version ;;
65  a) echo -n "GDB RPM release >"
66     read gdb_rpm_release ;;
67  b) echo -n "RTEMS source >"
68     read rtems_version ;;
69  c) echo -n "RTEMS RPM release >"
70     read rtems_rpm_release ;;
71  d) echo -n "RPM build root >"
72     read rpm_build_root ;;
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
99
100echo " done"
101test -f Makefile || ./configure
102}
103
104menu_setup
105
106echo
107echo -n "Save setup [y|n] >"
108read sel
109case $sel in
110''|y*|Y*) save_setup ;;
111*) ;;
112esac
Note: See TracBrowser for help on using the repository browser.