source: rtems/scripts/setup @ 43e7d103

4.104.114.84.95
Last change on this file since 43e7d103 was 43e7d103, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 21, 1999 at 3:59:54 PM

Changes from Ralf with script-19991021-0. He fixed the %files
issue and has mkbspspec in a better state. user.cfg is now
gone.

There are some miscellaneous changes to buildall done by Joel
to clean up the build process.

  • Property mode set to 100755
File size: 2.5 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
38
39  echo -n "[0-9a] or any other key to quit >"
40  read sel
41  case $sel in
42  0) echo -n "BINUTILS source >"
43     read binutils_version ;;
44  1) echo -n "BINUTILS patch version >"
45     read binutils_patch_version ;;
46  2) echo -n "BINUTILS RPM release >"
47     read binutils_rpm_release ;;
48  3) echo -n "GCC source >"
49     read gcc_version ;;
50  4) echo -n "GCC patch version>"
51     read gcc_patch_version ;;
52  5) echo -n "NEWLIB source >"
53     read newlib_version ;;
54  6) echo -n "NEWLIB patch version>"
55     read newlib_patch_version ;;
56  7) echo -n "GCC/NEWLIB RPM release >"
57     read gccnewlib_rpm_release ;;
58  8) echo -n "GDB source >"
59     read GDB_SOURCE ;;
60  9) echo -n "GDB patch version>"
61     read gdb_patch_version ;;
62  a) echo -n "GDB RPM release >"
63     read gdb_rpm_release ;;
64  *) 
65     return 0 ;;
66  esac
67done
68}
69
70
71save_setup()
72{
73echo -n "saving setup to $CFG .."
74
75echo "# RTEMS tools setup" > $CFG
76echo "binutils_version=$binutils_version" >> $CFG
77echo "binutils_patch_version=$binutils_patch_version" >> $CFG
78echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
79echo "newlib_version=$newlib_version" >> $CFG
80echo "newlib_patch_version=$newlib_patch_version" >> $CFG
81echo "gcc_version=$gcc_version" >> $CFG
82echo "gcc_patch_version=$gcc_patch_version" >> $CFG
83echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
84echo "gdb_version=$gdb_version" >> $CFG
85echo "gdb_patch_version=$gdb_patch_version" >> $CFG
86echo "gdbrpm_release=$gdbrpm_release" >> $CFG
87
88echo " done"
89test -f Makefile || ./configure
90}
91
92menu_setup
93
94echo
95echo -n "Save setup [y|n] >"
96read sel
97case $sel in
98''|y*|Y*) save_setup ;;
99*) ;;
100esac
Note: See TracBrowser for help on using the repository browser.