-
Notifications
You must be signed in to change notification settings - Fork 2
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
98ea9f3
commit e091044
Showing
5 changed files
with
82 additions
and
1 deletion.
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,17 @@ | ||
#!/bin/sh | ||
# -*- coding: utf-8 -*- | ||
|
||
echo -e 'Cleaning all sub-repositories.\n' >/dev/stderr; | ||
|
||
REPOS='arr clarg err futils himem log mt19937 str table'; | ||
|
||
for repo in ${REPOS}; do | ||
cd ${repo}; | ||
echo -n "Cleaning sub-repo ‘${repo}’... " >/dev/stderr; | ||
make clean 2>&1 >/dev/null; | ||
echo 'done.' >/dev/stderr; | ||
cd ..; | ||
done | ||
|
||
echo -e 'All done. Exiting...' >/dev/stderr; | ||
exit 0; |
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,18 @@ | ||
#!/bin/sh | ||
# -*- coding: utf-8 -*- | ||
|
||
echo -e 'Auto-formatting all sub-repositories.\n' >/dev/stderr; | ||
|
||
REPOS='arr chkmath clarg decl endian err futils himem log mt19937 str table | ||
text'; | ||
|
||
for repo in ${REPOS}; do | ||
cd ${repo}; | ||
echo -n "Formatting sub-repo ‘${repo}’... " >/dev/stderr; | ||
make format 2>&1 >/dev/null; | ||
echo 'done.' >/dev/stderr; | ||
cd ..; | ||
done | ||
|
||
echo -e 'All done. Exiting...' >/dev/stderr; | ||
exit 0; |
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,46 @@ | ||
#!/bin/sh | ||
# -*- coding: utf-8 -*- | ||
|
||
echo 'Building all sub-repositories.' >/dev/stderr; | ||
if [ "$1" = 'release' ]; then | ||
target=release; | ||
echo 'Building optimised release target.' >/dev/stderr; | ||
elif [ "$1" = 'check' ]; then | ||
target=check; | ||
echo 'Building sanity check target.' >/dev/stderr; | ||
elif [ "$1" = 'cov' ]; then | ||
target=cov; | ||
echo 'Building code coverage target.' >/dev/stderr; | ||
elif [ "$1" = 'asan' ]; then | ||
target=asan; | ||
echo 'Building A-san target.' >/dev/stderr; | ||
elif [ "$1" = 'ubsan' ]; then | ||
target=ubsan; | ||
echo 'Building UB-san target.' >/dev/stderr; | ||
elif [ "$1" = '' ] || [ "$1" = 'debug' ]; then | ||
target=debug; | ||
echo 'Building debug target.' >/dev/stderr; | ||
else | ||
echo "Unknown target ‘$1’. Exiting..." >/dev/stderr; | ||
exit 127; | ||
fi | ||
|
||
REPOS='arr clarg err futils himem log mt19937 str table'; | ||
|
||
if [ "$(uname -s)" = 'Darwin' ]; then | ||
jobs=$(($(sysctl -n hw.ncpu))) | ||
else | ||
jobs=$(($(nproc) * 2)); | ||
fi | ||
|
||
for repo in ${REPOS}; do | ||
cd ${repo}; | ||
echo "Building sub-repo ‘${repo}’..." >/dev/stderr; | ||
make ${target} -j${jobs}; | ||
cd ..; | ||
done | ||
|
||
echo -e 'All done. Exiting...' >/dev/stderr; | ||
|
||
unset target jobs; | ||
exit 0; |
File renamed without changes.