OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rtems-20020807/] [contrib/] [cygwin/] [setup] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#!/bin/bash
2
 
3
CFG=setup.cache
4
 
5
# RTEMS tools setup
6
 
7
if test ! -f ./$CFG;
8
then
9
 echo -n "restoring default setup.cache .."
10
 cp ./setup.def ./$CFG
11
 echo " done"
12
fi
13
 
14
echo -n "loading setup from ./$CFG .."
15
. ./$CFG
16
echo " done"
17
echo
18
 
19
menu_setup()
20
{
21
while true;
22
do
23
  echo
24
  echo "       Source packages setup"
25
  echo
26
  echo "0 binutils version        : $binutils_version"
27
  echo "1 binutils rpm release    : $binutils_rpm_release"
28
  echo "2 cygwin version          : $cygwin_version"
29
  echo "3 cygwin rpm release      : $cygwin_rpm_release"
30
  echo "4 mingw version           : $mingw_version"
31
  echo "5 mingw rpm release       : $mingw_rpm_release"
32
  echo "6 w32api version          : $w32api_version"
33
  echo "7 w32api rpm release      : $w32api_rpm_release"
34
  echo "8 gcc version             : $gcc_version"
35
  echo "9 gcc rpm release         : $gcc_rpm_release"
36
  echo "a rpm build root          : $rpm_build_root"
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 rpm release >"
45
     read binutils_rpm_release ;;
46
  2) echo -n "CYGWIN source >"
47
     read cygwin_version ;;
48
  3) echo -n "CYGWIN rpm release >"
49
     read cygwin_rpm_release ;;
50
  4) echo -n "MINGW source >"
51
     read mingw_version ;;
52
  5) echo -n "MINGW rpm release >"
53
     read mingw_rpm_release ;;
54
  6) echo -n "W32API source >"
55
     read w32api_version ;;
56
  7) echo -n "W32API rpm release >"
57
     read w32api_rpm_release ;;
58
  8) echo -n "GCC source >"
59
     read gcc_version ;;
60
  9) echo -n "GCC RPM release >"
61
     read gcc_rpm_release ;;
62
  a) echo -n "RPM build root >"
63
     read rpm_build_root ;;
64
  *)
65
     return 0 ;;
66
  esac
67
done
68
}
69
 
70
 
71
save_setup()
72
{
73
echo -n "saving setup to $CFG .."
74
 
75
echo "# RTEMS tools setup" > $CFG
76
 
77
echo "binutils_version=$binutils_version" >> $CFG
78
echo "binutils_patch_version=$binutils_patch_version" >> $CFG
79
echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
80
 
81
echo "mingw_version=$mingw_version" >> $CFG
82
echo "mingw_patch_version=$mingw_patch_version" >> $CFG
83
echo "mingw_rpm_release=$mingw_rpm_release" >> $CFG
84
 
85
echo "cygwin_version=$cygwin_version" >> $CFG
86
echo "cygwin_patch_version=$cygwin_patch_version" >> $CFG
87
echo "cygwin_rpm_release=$cygwin_rpm_release" >> $CFG
88
 
89
echo "w32api_version=$w32api_version" >> $CFG
90
echo "w32api_patch_version=$w32api_patch_version" >> $CFG
91
echo "w32api_rpm_release=$w32api_rpm_release" >> $CFG
92
 
93
echo "gcc_version=$gcc_version" >> $CFG
94
echo "gcc_patch_version=$gcc_patch_version" >> $CFG
95
echo "gcc_rpm_release=$gcc_rpm_release" >> $CFG
96
 
97
echo "rpm_build_root=$rpm_build_root" >> $CFG
98
 
99
echo " done"
100
test -f Makefile || ./configure
101
}
102
 
103
menu_setup
104
 
105
echo
106
echo -n "Save setup [y|n] >"
107
read sel
108
case $sel in
109
''|y*|Y*) save_setup ;;
110
*) ;;
111
esac

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.