Author: cfinck
Date: Sat Dec 22 21:31:04 2007
New Revision: 31401
URL: http://svn.reactos.org/svn/reactos?rev=31401&view=rev
Log:
- Add "make" to the list of updated tools in RosBE-Unix 1.1.
- NASM 2.0 has problems, when it's compiled in a dedicated build directory, so extract the source into one directory and build NASM in the same one.
- Use a better method for expanding variables in pathes.
- Also expand variables in pathes in "createshortcut.sh".
- Add "scut" to the list printed by the "help" command.
Modified:
trunk/tools/RosBE/RosBE-Unix/RosBE-Builder.sh
trunk/tools/RosBE/RosBE-Unix/scripts/createshortcut.sh
trunk/tools/RosBE/RosBE-Unix/scripts/help.sh
Modified: trunk/tools/RosBE/RosBE-Unix/RosBE-Builder.sh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/RosBE-Build…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/RosBE-Builder.sh (original)
+++ trunk/tools/RosBE/RosBE-Unix/RosBE-Builder.sh Sat Dec 22 21:31:04 2007
@@ -186,6 +186,9 @@
if [ "$installdir" = "" ]; then
installdir=$DEFAULT_INSTALL_DIR
fi
+
+ # Make sure we have the absolute path to the installation directory
+ installdir=`eval echo $installdir`
# Check if the installation directory already exists
if [ -f "$installdir" ]; then
@@ -254,10 +257,6 @@
fi
done
-# Make sure we have the absolute path to the installation directory
-cd "$installdir"
-installdir="$PWD"
-
# Ready to start
boldmsg "Ready to start"
@@ -302,6 +301,7 @@
process_w32api=true
process_binutils=true
process_gcc=true
+ process_make=true
process_nasm=true
process_scut=true
;;
@@ -469,16 +469,14 @@
# nasm
if $process_nasm; then
rm -rf "nasm"
- rm -rf "nasm-build"
echo -n "Extracting nasm... "
tar -xjf "nasm.tar.bz2" >& "$SCRIPTDIR/tar.log"
checkrun "tar"
echo -n "Configuring nasm... "
- mkdir "nasm-build"
- cd "nasm-build"
- ../nasm/configure --prefix="$installdir" --target=mingw32 >& "$SCRIPTDIR/configure.log"
+ cd "nasm"
+ ./configure --prefix="$installdir" --target=mingw32 >& "$SCRIPTDIR/configure.log"
checkrun "configure"
echo -n "Building nasm... "
@@ -491,7 +489,6 @@
echo -n "Cleaning up nasm... "
cd "$SOURCEDIR"
- rm -rf "nasm-build"
rm -rf "nasm"
checkrun
fi
Modified: trunk/tools/RosBE/RosBE-Unix/scripts/createshortcut.sh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/scripts/cre…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/scripts/createshortcut.sh (original)
+++ trunk/tools/RosBE/RosBE-Unix/scripts/createshortcut.sh Sat Dec 22 21:31:04 2007
@@ -37,6 +37,9 @@
sourcedir=""
while [ "$sourcedir" = "" ]; do
read -p "Directory: " sourcedir
+
+ # Make sure we have the absolute path to the source directory
+ sourcedir=`eval echo $sourcedir`
if ! [ -d "$sourcedir" ]; then
echo "The entered path is no directory. Please enter the right path to the ReactOS sources."
Modified: trunk/tools/RosBE/RosBE-Unix/scripts/help.sh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/scripts/hel…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/scripts/help.sh (original)
+++ trunk/tools/RosBE/RosBE-Unix/scripts/help.sh Sat Dec 22 21:31:04 2007
@@ -14,9 +14,12 @@
echo " makex [OPTIONS] - Same as 'make' but automatically determines the"
echo " number of CPUs in the system and uses -j with"
echo " the appropriate number."
+echo " basedir - Switch back to the ReactOS source directory."
echo " clean - Fully clean the ReactOS source directory."
echo " help - Display the available commands."
+echo " scut [OPTIONS] - List, add, edit, remove, switch and default to"
+echo " shortcutted ReactOS source directories."
echo " version - Show information about the tool versions."
-echo " basedir - Switch back to the ReactOS source directory."
+
echo
Author: cfinck
Date: Sat Dec 22 18:22:53 2007
New Revision: 31397
URL: http://svn.reactos.org/svn/reactos?rev=31397&view=rev
Log:
Update the plain text version of the Readme file as well.
Modified:
trunk/tools/RosBE/RosBE-Unix/README
Modified: trunk/tools/RosBE/RosBE-Unix/README
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/README?rev=…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/README (original)
+++ trunk/tools/RosBE/RosBE-Unix/README Sat Dec 22 18:22:53 2007
@@ -1,5 +1,5 @@
ReactOS Build Environment
- Version 0.3.6 for Unix-based operating systems
+ Version 1.1 for Unix-based operating systems
by Colin Finck (mail(a)colinfinck.de)
Introduction
@@ -79,22 +79,26 @@
This version of RosBE for Unix-based operating systems uses the following
components:
- * Binutils 20070422 (CVS version)
- patched with "winres_64bit.diff"
- (http://sourceware.org/bugzilla/attachment.cgi?id=1733&action=view)
+ * GNU Binutils v2.18.50-20071015 (snapshot)
+ patched with:
+ - binutils-2.18.50.10-15-2007-snapshot-hpoussin.patch
+ (http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/Patches/binutils-2.18.…)
- * GCC 4.1.3-prerelease (SVN version, r124026)
- patched with "gcc-virtual-stdcall.patch"
- (http://www.apiviewer.de/downloads/gcc-virtual-stdcall.patch)
+ * GCC, The GNU Compiler Collection v4.1.3-20071015 (snapshot)
+ patched with:
+ - GCC-v4.1-r129382-prerelease-w3seek.patch
+ (http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/Patches/GCC-v4.1-r1293…)
+ - GCC-v4.1-r129382-virtual-stdcall-bug27067.patch
+ (http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/Patches/GCC-v4.1-r1293…)
+ - GCC-v4.1-r129490-CreateFileMapping-Vista-bug30335.patch
+ (http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/Patches/GCC-v4.1-r1294…)
+
NOTE: This GCC version only supports C and C++
- * Make 20070422 (CVS version)
- patched with "make-strcmpi-strcasecmp.patch"
- (http://savannah.gnu.org/file/make-strcmpi-strcasecmp.patch?file_id=12544)
-
- * Mingw-runtime 3.12
- * Nasm 0.98.39
- * w32api 3.9
+ * Make 20071219 (CVS version)
+ * MinGW-Runtime 3.13
+ * NASM, The Netwide assembler v2.00
+ * W32api 3.10
Tested Operating Systems
@@ -112,7 +116,7 @@
Websites
---------
-MingW - Minimalist GNU for Windows
+MinGW - Minimalist GNU for Windows
http://www.mingw.org
Binutils, the Binary Tools Collection
@@ -130,7 +134,19 @@
Credits
--------
- Credits go to blight, dralnix and EmuandCo, who created the original ReactOS
-Build Environment for Windows. My Unix version uses many ideas of it.
- Special thanks also to ROSFan, who created the nice ReactOS Build
-Environment Logo.
+Colin Finck (mail(a)colinfinck.de)
+
+Thanks go also to the members of the RosBE-Windows team, namely:
+Daniel Reimer (reimer.daniel(a)freenet.de)
+Peter Ward (dralnix(a)gmail.com)
+Pierre Schweitzer (heis_spiter(a)hotmail.com)
+
+ Special thanks to ROSFan, who created the nice ReactOS Build Environment
+Logo.
+ Special thanks also goes out to all those who provide so much help by
+testing out new versions, you know who you are. Without them the RosBE
+would not be what it is.
+ Credits go to Gregor Anich who created the original ReactOS Build
+Environment v0.2-3.4.4.
+
+Inspired by Dazzle from TinyKRNL (http://tinykrnl.org/).
Author: cfinck
Date: Sat Dec 22 18:06:16 2007
New Revision: 31396
URL: http://svn.reactos.org/svn/reactos?rev=31396&view=rev
Log:
Add links to the used patches to the RosBE-Windows Readme file as it's done for the RosBE-Unix file now.
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/README.odt
Modified: trunk/tools/RosBE/RosBE-Windows/Root/README.odt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/REA…
==============================================================================
Binary files - no diff available.
Author: cfinck
Date: Sat Dec 22 18:02:15 2007
New Revision: 31395
URL: http://svn.reactos.org/svn/reactos?rev=31395&view=rev
Log:
- Add a "scut.sh" script for executing scut and changing the current directory appropriately
- Add a "basedir.sh" script for the "basedir" command.
Previously, bash only read the $_ROSSOURCEDIR variable one time, when the prompt was started, and then never again.
- Add both scripts as aliases to the "RosBE-rc" file.
- Clarify with a better prompt, why I recommend to run the installation script as the "root" user.
- Update the Readme file.
Added:
trunk/tools/RosBE/RosBE-Unix/scripts/basedir.sh (with props)
trunk/tools/RosBE/RosBE-Unix/scripts/scut.sh (with props)
Modified:
trunk/tools/RosBE/RosBE-Unix/README.odt
trunk/tools/RosBE/RosBE-Unix/RosBE-Builder.sh
trunk/tools/RosBE/RosBE-Unix/scripts/RosBE-rc
Modified: trunk/tools/RosBE/RosBE-Unix/README.odt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/README.odt?…
==============================================================================
Binary files - no diff available.
Modified: trunk/tools/RosBE/RosBE-Unix/RosBE-Builder.sh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/RosBE-Build…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/RosBE-Builder.sh (original)
+++ trunk/tools/RosBE/RosBE-Unix/RosBE-Builder.sh Sat Dec 22 18:02:15 2007
@@ -102,7 +102,9 @@
if [ ! "`whoami`" = "root" ]; then
boldmsg "User is not \"root\""
- echo "It is recommended to run this script as the \"root\" user. Otherwise you probably cannot create the necessary directories."
+ echo "The default installation path for the Build Environment is \"$DEFAULT_INSTALL_DIR\"."
+ echo "Therefore it is recommended to run this script as the \"root\" user. Otherwise you probably cannot create the necessary directories."
+ echo "An alternative is to specify another installation directory at the installation process."
echo "Do you really want to continue? (yes/no)"
read -p "[no] " answer
Modified: trunk/tools/RosBE/RosBE-Unix/scripts/RosBE-rc
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/scripts/Ros…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/scripts/RosBE-rc (original)
+++ trunk/tools/RosBE/RosBE-Unix/scripts/RosBE-rc Sat Dec 22 18:02:15 2007
@@ -2,11 +2,12 @@
PATH="$_ROSSCRIPTDIR/bin:$PATH"
# Set aliases
-alias basedir="cd $_ROSSOURCEDIR"
+alias basedir="source $_ROSSCRIPTDIR/basedir.sh"
alias clean="$_ROSSCRIPTDIR/clean.sh"
alias help="$_ROSSCRIPTDIR/help.sh"
alias make="$_ROSSCRIPTDIR/build.sh"
alias makex="$_ROSSCRIPTDIR/build-multi.sh"
+alias scut="source $_ROSSCRIPTDIR/scut.sh"
alias version="$_ROSSCRIPTDIR/version.sh"
# Display the available commands
Added: trunk/tools/RosBE/RosBE-Unix/scripts/basedir.sh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/scripts/bas…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/scripts/basedir.sh (added)
+++ trunk/tools/RosBE/RosBE-Unix/scripts/basedir.sh Sat Dec 22 18:02:15 2007
@@ -1,0 +1,10 @@
+#!/bin/bash
+#
+# Script for changing the current directory to $_ROSSOURCEDIR
+# Part of RosBE for Unix-based Operating Systems
+# Copyright 2007 Colin Finck <mail(a)colinfinck.de>
+#
+# Released under GNU GPL v2 or any later version.
+
+# An alias just to "cd $_ROSSOURCEDIR" won't work as bash only expands when executing the shell and then never again
+cd "$_ROSSOURCEDIR"
Propchange: trunk/tools/RosBE/RosBE-Unix/scripts/basedir.sh
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/tools/RosBE/RosBE-Unix/scripts/scut.sh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/scripts/scu…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/scripts/scut.sh (added)
+++ trunk/tools/RosBE/RosBE-Unix/scripts/scut.sh Sat Dec 22 18:02:15 2007
@@ -1,0 +1,25 @@
+#!/bin/bash
+#
+# Script for launching scut and changing the current directory appropriately
+# Part of RosBE for Unix-based Operating Systems
+# Copyright 2007 Colin Finck <mail(a)colinfinck.de>
+#
+# Released under GNU GPL v2 or any later version.
+
+case "$1" in
+add|rem|edit|def|list|/?|-h|--help)
+ # It's an scut parameter, which can just be passed to the program
+ "$_ROSSCRIPTDIR/bin/scut" $*
+ ;;
+
+*)
+ # It's probably the name of a shortcut
+ _ROSSOURCEDIR=`"$_ROSSCRIPTDIR/bin/scut" $*`
+
+ if [ "$_ROSSOURCEDIR" != "Default" ] && [ -d "$_ROSSOURCEDIR" ]; then
+ export _ROSSOURCEDIR
+ basedir
+ fi
+
+ ;;
+esac
Propchange: trunk/tools/RosBE/RosBE-Unix/scripts/scut.sh
------------------------------------------------------------------------------
svn:eol-style = native
Author: cfinck
Date: Sat Dec 22 16:28:39 2007
New Revision: 31394
URL: http://svn.reactos.org/svn/reactos?rev=31394&view=rev
Log:
Tag the RosBE-Unix 0.3.6 release
Added:
tags/RosBE-Unix-0.3.6/
- copied from r27006, trunk/
Author: cfinck
Date: Sat Dec 22 16:13:02 2007
New Revision: 31393
URL: http://svn.reactos.org/svn/reactos?rev=31393&view=rev
Log:
- Add a macro file for the MinGW prompt as well
- Add SCUT to the macro file, it's also handy at the MinGW prompt :-)
- Remove EmuandCo's "Added a Security Prompt to clean.cmd..." entry from the changelog, the prompt has already been removed
Added:
trunk/tools/RosBE/RosBE-Windows/Root/MinGW.mac (with props)
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt
trunk/tools/RosBE/RosBE-Windows/Root/MinGW.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Cha…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt Sat Dec 22 16:13:02 2007
@@ -4,7 +4,7 @@
- Removed an used var. (Pierre Schweitzer)
- Added a "all" switch to clean.cmd to do both jobs, deleting Compiler Output AND Logs in one process. (Daniel Reimer)
-- Added a Security Prompt to clean.cmd to not accidentally delete all Built stuff. (Daniel Reimer)
+- Add a macro file for the MinGW prompt and add SCUT to this macro file (Colin Finck)
*** December 8th, 2007 - RosBE 1.1 Released
Modified: trunk/tools/RosBE/RosBE-Windows/Root/MinGW.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Min…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/MinGW.cmd (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/MinGW.cmd Sat Dec 22 16:13:02 2007
@@ -38,8 +38,6 @@
::
for /f "usebackq" %%i in (`"%_ROSBE_BASEDIR%\Tools\cpucount.exe" -x1`) do set CPUCOUNT=%%i
-doskey CHDEFGCC = "%_ROSBE_BASEDIR%\chdefgcc.cmd" $*
-doskey MAKE = "%_ROSBE_MINGWMAKE%" $*
-doskey MAKEX = "%_ROSBE_MINGWMAKE%" -j %CPUCOUNT% $*
+doskey /macrofile="%_ROSBE_BASEDIR%\MinGW.mac"
:EOC
Added: trunk/tools/RosBE/RosBE-Windows/Root/MinGW.mac
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Min…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/MinGW.mac (added)
+++ trunk/tools/RosBE/RosBE-Windows/Root/MinGW.mac Sat Dec 22 16:13:02 2007
@@ -1,0 +1,4 @@
+CHDEFGCC = "%_ROSBE_BASEDIR%\chdefgcc.cmd" $*
+MAKE = "%_ROSBE_MINGWMAKE%" $*
+MAKEX = "%_ROSBE_MINGWMAKE%" -j %CPUCOUNT% $*
+SCUT = "%_ROSBE_BASEDIR%\scut.cmd" $*
Propchange: trunk/tools/RosBE/RosBE-Windows/Root/MinGW.mac
------------------------------------------------------------------------------
svn:eol-style = native