URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [rtems-20020807/] [contrib/] [solaris/] [setup] - Rev 1779
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/bash
CFG=setup.cache
# RTEMS tools setup
if test ! -f ./$CFG;
then
echo -n "restoring default setup.cache .."
cp ./setup.def ./$CFG
echo " done"
fi
echo -n "loading setup from ./$CFG .."
. ./$CFG
echo " done"
echo
menu_setup()
{
while true;
do
echo
echo " Source packages setup"
echo
echo "0 binutils version : $binutils_version"
echo "1 binutils rpm release : $binutils_rpm_release"
echo "2 solaris version : $cygwin_version"
echo "3 solaris rpm release : $cygwin_rpm_release"
echo "4 gcc version : $gcc_version"
echo "5 gcc rpm release : $gcc_rpm_release"
echo "a rpm build root : $rpm_build_root"
echo
echo -n "[0-9a] or any other key to quit >"
read sel
case $sel in
0) echo -n "BINUTILS source >"
read binutils_version ;;
1) echo -n "BINUTILS rpm release >"
read binutils_rpm_release ;;
2) echo -n "SOLARIS source >"
read solaris_version ;;
3) echo -n "SOLARIS rpm release >"
read solaris_rpm_release ;;
4) echo -n "GCC source >"
read gcc_version ;;
5) echo -n "GCC RPM release >"
read gcc_rpm_release ;;
a) echo -n "RPM build root >"
read rpm_build_root ;;
*)
return 0 ;;
esac
done
}
save_setup()
{
echo -n "saving setup to $CFG .."
echo "# RTEMS tools setup" > $CFG
echo "binutils_version=$binutils_version" >> $CFG
echo "binutils_patch_version=$binutils_patch_version" >> $CFG
echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
echo "mingw_version=$mingw_version" >> $CFG
echo "mingw_patch_version=$mingw_patch_version" >> $CFG
echo "mingw_rpm_release=$mingw_rpm_release" >> $CFG
echo "solaris_version=$cygwin_version" >> $CFG
echo "solaris_patch_version=$cygwin_patch_version" >> $CFG
echo "solaris_rpm_release=$cygwin_rpm_release" >> $CFG
echo "w32api_version=$w32api_version" >> $CFG
echo "w32api_patch_version=$w32api_patch_version" >> $CFG
echo "w32api_rpm_release=$w32api_rpm_release" >> $CFG
echo "gcc_version=$gcc_version" >> $CFG
echo "gcc_patch_version=$gcc_patch_version" >> $CFG
echo "gcc_rpm_release=$gcc_rpm_release" >> $CFG
echo "rpm_build_root=$rpm_build_root" >> $CFG
echo " done"
test -f Makefile || ./configure
}
menu_setup
echo
echo -n "Save setup [y|n] >"
read sel
case $sel in
''|y*|Y*) save_setup ;;
*) ;;
esac
Go to most recent revision | Compare with Previous | Blame | View Log