-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Поддержка скриптов srefc и srmake (#9)
- Loading branch information
Showing
21 changed files
with
114 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ fi | |
|
||
( cd distrib && ./bootstrap.sh ) | ||
mkdir -p bin | ||
cp distrib/bin/* bin | ||
|
||
( cd src && ./make.sh ) | ||
|
||
|
Submodule distrib
updated
9 files
+2 −1 | .gitignore | |
+17 −0 | bin/srefc | |
+19 −0 | bin/srefc.bat | |
+20 −0 | bin/srmake | |
+22 −0 | bin/srmake.bat | |
+2 −2 | bootstrap.bat | |
+2 −2 | bootstrap.sh | |
+1 −1 | clear.bat | |
+1 −1 | clear.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
..\..\bin\lexgen Lexer.sref | ||
call ..\make compiler srefc srefc "" ..\..\distrib | ||
..\..\distrib\bin\lexgen Lexer.sref | ||
call ..\make compiler srefc-core srefc "" ..\..\distrib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
../../bin/lexgen Lexer.sref | ||
source ../make.sh compiler srefc srefc "" ../../distrib | ||
../../distrib/bin/lexgen Lexer.sref | ||
source ../make.sh compiler srefc-core srefc "" ../../distrib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
..\..\bin\lexgen Lexer.sref | ||
call ..\make compiler srefc srefc | ||
call ..\make compiler srefc-core srefc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
../../bin/lexgen Lexer.sref | ||
source ../make.sh compiler srefc srefc | ||
source ../make.sh compiler srefc-core srefc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
copy srefc.bat ..\..\bin | ||
copy srmake.bat ..\..\bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
cp srefc.sh ../../bin/srefc | ||
cp srmake.sh ../../bin/srmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@echo off | ||
|
||
:: Получаем путь к папке bin, удаляем концевой \ | ||
set BINDIR=%~dp0 | ||
set BINDIR=%BINDIR:~0,-1% | ||
|
||
:: Получаем путь к дистрибутиву, удаяем концевой \ | ||
for %%d in ("%BINDIR%") do set DISTRDIR=%%~dpd | ||
set DISTRDIR=%DISTRDIR:~0,-1% | ||
|
||
:: Путь к папке srlib | ||
set LIBDIR=%DISTRDIR%\srlib | ||
|
||
:: Запуск | ||
setlocal | ||
call "%DISTRDIR%\c-plus-plus.conf.bat" | ||
set PATH=%BINDIR%;%PATH% | ||
srefc-core -c "%CPPLINE% %CPPLINE-FLAGS% -I\"%LIBDIR%\"" %* -d "%LIBDIR%" | ||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Получаем путь к папке bin | ||
BINDIR=$(dirname $0) | ||
|
||
# Получаем путь к дистрибутиву | ||
DISTRDIR=$(dirname $BINDIR) | ||
|
||
# Путь к папке srlib | ||
LIBDIR=$DISTRDIR/srlib | ||
|
||
# Запуск | ||
( | ||
source $DISTRDIR/c-plus-plus.conf.sh | ||
PATH=$BINDIR:$PATH | ||
srefc-core -c "$CPPLINE $CPPLINE_FLAGS -I\"$LIBDIR\"" $* -d "$LIBDIR" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@echo off | ||
|
||
:: Получаем путь к папке bin, удаляем концевой \ | ||
set BINDIR=%~dp0 | ||
set BINDIR=%BINDIR:~0,-1% | ||
|
||
:: Получаем путь к дистрибутиву, удаяем концевой \ | ||
for %%d in ("%BINDIR%") do set DISTRDIR=%%~dpd | ||
set DISTRDIR=%DISTRDIR:~0,-1% | ||
|
||
:: Путь к папке srlib | ||
set LIBDIR=%DISTRDIR%\srlib | ||
|
||
:: Запуск | ||
setlocal | ||
call "%DISTRDIR%\c-plus-plus.conf.bat" | ||
set PATH=%BINDIR%;%PATH% | ||
srmake-core ^ | ||
-s srefc-core.exe ^ | ||
-c "%CPPLINE% %CPPLINE-FLAGS% -I\\"%LIBDIR%\\"" ^ | ||
%* -d "%LIBDIR%" | ||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Получаем путь к папке bin | ||
BINDIR=$(dirname $0) | ||
|
||
# Получаем путь к дистрибутиву | ||
DISTRDIR=$(dirname $BINDIR) | ||
|
||
# Путь к папке srlib | ||
LIBDIR=$DISTRDIR/srlib | ||
|
||
# Запуск | ||
( | ||
source $DISTRDIR/c-plus-plus.conf.sh | ||
PATH=$BINDIR:$PATH | ||
srmake-core \ | ||
-s srefc-core \ | ||
-c "$CPPLINE $CPPLINE_FLAGS -I\"$LIBDIR\"" \ | ||
$* -d "$LIBDIR" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
..\..\bin\srefc LibraryEx | ||
..\..\bin\srefc-core LibraryEx | ||
|
||
if not exist ..\..\srlib\src\nul ( | ||
mkdir ..\..\srlib | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
call ..\make srmake srmake SRMake -DDONT_PRINT_STATISTICS | ||
call ..\make srmake srmake-core SRMake -DDONT_PRINT_STATISTICS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
source ../make.sh srmake srmake SRMake -DDONT_PRINT_STATISTICS | ||
source ../make.sh srmake srmake-core SRMake -DDONT_PRINT_STATISTICS |