RosBE/RosBE-Unix/Base-i386/scripts/charch.sh
Colin Finck 45d14c81ef - Removed the unneeded -gstabs+ flag as the debug symbols of all toolchain binaries are stripped off anyway after the build.
- Do some basic checks to verify that we're really in a checkout directory before cleaning it.
- Fix the architecture environment variable in RosBE-Unix.
- Consider the ROS_AUTOMAKE and ROS_CDOUTPUT variables when cleaning.
  The default makefile is always "makefile-ARCH.auto" now, also for i386. Will be changed in the tree as well once we all update to 1.5.
- Leave out RosBE-Unix' version number for GCC's --with-pkgversion parameter as this could be misleading for future updates.
- Many code simplifications

svn path=/trunk/tools/RosBE/; revision=1164
2010-01-26 20:17:49 +00:00

24 lines
661 B
Bash
Executable File

#!/bin/bash
#
# Change the current target build tools to an architecture to build for
# Part of RosBE for Unix-based Operating Systems
# Copyright 2009-2010 Colin Finck <colin@reactos.org>
#
# Released under GNU GPL v2 or any later version.
if [ "$1" = "" ]; then
echo "charch: Changes the architecture to build for."
echo "The appropriate build tools for this architecture need to be installed by a"
echo "RosBE-Unix package."
echo
echo "Syntax: charch <architecture>"
return 0
fi
# Change the architecture
source "$_ROSBE_ROSSCRIPTDIR/rosbelibrary.sh"
change_architecture $1
# Display tool versions
source "$_ROSBE_ROSSCRIPTDIR/$ROS_ARCH/version.sh"