moving build-support/factor.(sh|cmd) to ./build.(sh|cmd).

locals-and-roots
John Benediktsson 2016-03-15 03:16:33 -07:00
parent 4f0a72f524
commit 5dd6435511
7 changed files with 11 additions and 14 deletions

View File

@ -33,8 +33,8 @@ To check out Factor:
To build the latest complete Factor system from git: To build the latest complete Factor system from git:
* Windows: `build-support\factor.cmd` * Windows: `build.cmd`
* Unix: `./build-support/factor.sh update` * Unix: `./build.sh update`
Now you should have a complete Factor system ready to run. Now you should have a complete Factor system ready to run.
@ -112,7 +112,6 @@ You can also write scripts that can be run from the terminal, by putting
The Factor source tree is organized as follows: The Factor source tree is organized as follows:
* `build-support/` - scripts used for compiling Factor (not present in binary packages)
* `vm/` - Factor VM source code (not present in binary packages) * `vm/` - Factor VM source code (not present in binary packages)
* `core/` - Factor core library * `core/` - Factor core library
* `basis/` - Factor basis library, compiler, tools * `basis/` - Factor basis library, compiler, tools

View File

@ -56,7 +56,7 @@ nmake /nologo /f Nmakefile %_target%
if errorlevel 1 goto fail if errorlevel 1 goto fail
echo Fetching %_bootimage_version% boot image... echo Fetching %_bootimage_version% boot image...
cscript /nologo build-support\http-get.vbs http://downloads.factorcode.org/images/%_bootimage_path%/%_bootimage% %_bootimage% cscript /nologo misc\http-get.vbs http://downloads.factorcode.org/images/%_bootimage_path%/%_bootimage% %_bootimage%
if errorlevel 1 goto fail if errorlevel 1 goto fail
echo Bootstrapping... echo Bootstrapping...
@ -75,7 +75,7 @@ echo Build failed.
goto :EOF goto :EOF
:wrongdir :wrongdir
echo build-support\factor.cmd must be run from the root of the Factor source tree. echo build.cmd must be run from the root of the Factor source tree.
goto :EOF goto :EOF
:nocl :nocl
@ -84,7 +84,7 @@ echo Make sure you're running within the Visual Studio or Windows SDK environmen
goto :EOF goto :EOF
:usage :usage
echo Usage: build-support\factor.cmd [latest/clean] echo Usage: build.cmd [latest/clean]
echo Updates the working copy, cleans and builds the vm using nmake, echo Updates the working copy, cleans and builds the vm using nmake,
echo fetches a boot image, and bootstraps factor. echo fetches a boot image, and bootstraps factor.
echo If latest is specified, then the working copy is updated to the echo If latest is specified, then the working copy is updated to the

View File

@ -474,7 +474,7 @@ update_script() {
} }
update_script_changed() { update_script_changed() {
invoke_git diff --stat `invoke_git merge-base HEAD FETCH_HEAD` FETCH_HEAD | grep 'build-support.factor\.sh' >/dev/null invoke_git diff --stat `invoke_git merge-base HEAD FETCH_HEAD` FETCH_HEAD | grep 'build\.sh' >/dev/null
} }
git_fetch_factorcode() { git_fetch_factorcode() {
@ -526,7 +526,7 @@ check_makefile_exists() {
$ECHO "***GNUmakefile not found***" $ECHO "***GNUmakefile not found***"
$ECHO "You are likely in the wrong directory." $ECHO "You are likely in the wrong directory."
$ECHO "Run this script from your factor directory:" $ECHO "Run this script from your factor directory:"
$ECHO " ./build-support/factor.sh" $ECHO " ./build.sh"
exit_script 6 exit_script 6
fi fi
} }

View File

@ -3,4 +3,4 @@
USING: build-support sequences tools.test ; USING: build-support sequences tools.test ;
IN: build-support.tests IN: build-support.tests
{ f } [ factor.sh-make-target empty? ] unit-test { f } [ build-make-target empty? ] unit-test

View File

@ -4,10 +4,8 @@ USING: accessors arrays calendar io io.backend io.encodings.utf8
io.launcher ; io.launcher ;
IN: build-support IN: build-support
CONSTANT: factor.sh-path "resource:build-support/factor.sh" : build-make-target ( -- string )
: factor.sh-make-target ( -- string )
<process> <process>
factor.sh-path normalize-path "make-target" 2array >>command "resource:build.sh" normalize-path "make-target" 2array >>command
10 seconds >>timeout 10 seconds >>timeout
utf8 [ readln ] with-process-reader ; utf8 [ readln ] with-process-reader ;

View File

@ -9,7 +9,7 @@ IN: mason.child
! Make sure we call the build directory's factor.cmd ! Make sure we call the build directory's factor.cmd
: nmake-cmd ( -- args ) : nmake-cmd ( -- args )
"./build-support/factor.cmd" absolute-path "./build.cmd" absolute-path
"latest" "latest"
target-cpu get name>> "." split "-" join 3array ; target-cpu get name>> "." split "-" join 3array ;