Skip to content
Browse files

異なるディレクトリから bat ファイルを実行しても動作するようにした. #282

  • Loading branch information...
1 parent c2fdf72 commit e57ba7a5e2c6a9423648f0b271d01aff04c83309 @x022235 x022235 committed
Showing with 9 additions and 4 deletions.
  1. +2 −1 build.bat
  2. +2 −0 bytecompile.bat
  3. +1 −0 dist.bat
  4. +1 −1 misc/update_version_describe.bat
  5. +1 −1 misc/update_zlib.bat
  6. +2 −1 run-tests.bat
View
3 build.bat
@@ -1,6 +1,7 @@
@echo off
-
setlocal
+cd /d %~dp0
+
call "%VS100COMNTOOLS%\vsvars32.bat"
if "%1"=="" (set CONFIGURATION=Release) else (set CONFIGURATION=%1)
View
2 bytecompile.bat
@@ -1,4 +1,6 @@
@echo off
+setlocal
+cd /d %~dp0
echo Byte compile...
rem startup.lc だけ「存在するファイルを作成することは出来ません」と言われて
View
1 dist.bat
@@ -1,5 +1,6 @@
@echo off
setlocal
+cd /d %~dp0
if "%1"=="" goto usage
View
2 misc/update_version_describe.bat
@@ -1,6 +1,6 @@
@echo off
setlocal
-cd %~dp0\..
+cd /d %~dp0\..
set VERSION_DESCRIBE_H=src\gen\version-describe.h
set VERSION_DESCRIBE_TMP=src\gen\version-describe.%RANDOM%.tmp
View
2 misc/update_zlib.bat
@@ -1,5 +1,6 @@
@echo off
setlocal
+cd /d %~dp0
REM src/zlib を更新します
REM curl.exe, 7za.exe が必要です。
@@ -8,7 +9,6 @@ set ZLIBVER=zlib-1.2.6
set ZLIBZIP=zlib126.zip
set ZLIBDIST=%~dp0\..\src\zlib
-cd %~dp0
curl http://zlib.net/%ZLIBZIP% -o %ZLIBZIP%
7za x -y %ZLIBZIP%
View
3 run-tests.bat
@@ -1,4 +1,6 @@
@echo off
+setlocal
+cd /d %~dp0
rem Usage: run-tests.bat [TESTS...]
rem
@@ -12,7 +14,6 @@ rem
rem lisp-tests.l と editor-tests.l だけを実行
rem run-tests.bat unittest/lisp-tests.l unittest/editor-tests.l
-setlocal
set TESTDIR=%~dp0unittest
set XYZZYHOME=%TESTDIR%\..
set XYZZYINIFILE=

0 comments on commit e57ba7a

Please sign in to comment.
Something went wrong with that request. Please try again.