-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a2f006
commit 6089c74
Showing
2 changed files
with
116 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
# | ||
# Unlike the DOS batch files, this script is much more powerful. | ||
# In fact, this script BUILDs the DOS batch files. | ||
# | ||
# NTS: Make sure your editor uses unix LF endings in the file, | ||
# but keeps the CR LF DOS endings for the DOS batch files. | ||
|
||
cat >buildall.bat <<_EOF | ||
@echo off | ||
set WHAT=make | ||
if "%1" == "clean" set WHAT=clean | ||
_EOF | ||
cat >clean.bat <<_EOF | ||
@echo off | ||
if exist *.map del *.map | ||
if exist *.obj del *.obj | ||
if exist *.sym del *.sym | ||
if exist *.exe del *.exe | ||
_EOF | ||
for i in *; do if [ -d "$i" ]; then | ||
(cd $i && ( | ||
cp -vu ../buildall.sh buildall.sh || exit 1 | ||
|
||
if [ -x buildall.sh ]; then | ||
echo Building: $i | ||
./buildall.sh $* || exit 1 | ||
|
||
cat >>../buildall.bat <<_EOF | ||
echo Building: $i | ||
cd $i | ||
call buildall.bat %WHAT% | ||
cd .. | ||
_EOF | ||
fi | ||
|
||
if [ -x make.sh ]; then | ||
./make.sh $* || exit 1 | ||
|
||
echo Building: $i | ||
cat >>../buildall.bat <<_EOF | ||
echo Building: $i | ||
cd $i | ||
call make.bat %WHAT% | ||
cd .. | ||
_EOF | ||
fi) | ||
) || exit 1 | ||
fi; done | ||
|
||
cat >>buildall.bat <<_EOF | ||
echo All done | ||
_EOF | ||
|
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,58 @@ | ||
#!/bin/bash | ||
# | ||
# Unlike the DOS batch files, this script is much more powerful. | ||
# In fact, this script BUILDs the DOS batch files. | ||
# | ||
# NTS: Make sure your editor uses unix LF endings in the file, | ||
# but keeps the CR LF DOS endings for the DOS batch files. | ||
|
||
cat >buildall.bat <<_EOF | ||
@echo off | ||
set WHAT=make | ||
if "%1" == "clean" set WHAT=clean | ||
_EOF | ||
cat >clean.bat <<_EOF | ||
@echo off | ||
if exist *.map del *.map | ||
if exist *.obj del *.obj | ||
if exist *.sym del *.sym | ||
if exist *.exe del *.exe | ||
_EOF | ||
for i in *; do if [ -d "$i" ]; then | ||
(cd $i && ( | ||
cp -vu ../buildall.sh buildall.sh || exit 1 | ||
|
||
if [ -x buildall.sh ]; then | ||
echo Building: $i | ||
./buildall.sh $* || exit 1 | ||
|
||
cat >>../buildall.bat <<_EOF | ||
echo Building: $i | ||
cd $i | ||
call buildall.bat %WHAT% | ||
cd .. | ||
_EOF | ||
fi | ||
|
||
if [ -x make.sh ]; then | ||
./make.sh $* || exit 1 | ||
|
||
echo Building: $i | ||
cat >>../buildall.bat <<_EOF | ||
echo Building: $i | ||
cd $i | ||
call make.bat %WHAT% | ||
cd .. | ||
_EOF | ||
fi) | ||
) || exit 1 | ||
fi; done | ||
|
||
cat >>buildall.bat <<_EOF | ||
echo All done | ||
_EOF | ||
|