nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
android & benitlux: use NitObject in clients
[nit.git]
/
contrib
/
oot.sh
diff --git
a/contrib/oot.sh
b/contrib/oot.sh
index
ff29ba2
..
f5238e2
100755
(executable)
--- a/
contrib/oot.sh
+++ b/
contrib/oot.sh
@@
-21,6
+21,7
@@
update_oot() {
if test -d "$dir"; then
echo "$name: git pull"
update_oot() {
if test -d "$dir"; then
echo "$name: git pull"
+ ../misc/jenkins/unitrun.sh "cmd-$name-remote" git --work-tree="$PWD/$dir" --git-dir="$PWD/$dir/.git" remote set-url origin "$repo"
../misc/jenkins/unitrun.sh "cmd-$name-pull" git --work-tree="$PWD/$dir" --git-dir="$PWD/$dir/.git" pull -f
else
echo "$name: git clone"
../misc/jenkins/unitrun.sh "cmd-$name-pull" git --work-tree="$PWD/$dir" --git-dir="$PWD/$dir/.git" pull -f
else
echo "$name: git clone"
@@
-31,15
+32,27
@@
update_oot() {
# Run trymake with arguments
trymake_oot() {
echo "$name: trymake $@"
# Run trymake with arguments
trymake_oot() {
echo "$name: trymake $@"
+ if [ ! -f "$dir/Makefile" ]; then
+ echo "no makefile"
+ return
+ fi
../misc/jenkins/trymake.sh "$name" "$dir" "$@"
}
../misc/jenkins/trymake.sh "$name" "$dir" "$@"
}
+list=
+if [ -f "$1" ]; then
+ list=$1
+ shift
+fi
+
cmd="$1"
shift
cmd="$1"
shift
+process_list() {
while read -r repo name; do
[[ "$repo" = "#"* ]] && continue
while read -r repo name; do
[[ "$repo" = "#"* ]] && continue
- [[ "$name" = "" ]] && continue
+ [[ "$repo" = "" ]] && continue
+ [[ "$name" = "" ]] && name=`basename "$repo" .git`
dir="oot/$name"
case "$cmd" in
list) echo "$name";;
dir="oot/$name"
case "$cmd" in
list) echo "$name";;
@@
-47,7
+60,15
@@
while read -r repo name; do
trymake) trymake_oot "$@";;
pre-build) trymake_oot pre-build;;
all) update_oot; trymake_oot pre-build all check;;
trymake) trymake_oot "$@";;
pre-build) trymake_oot pre-build;;
all) update_oot; trymake_oot pre-build all check;;
- ""|help) echo "usage: oot.sh command [arg...]"; exit 0;;
+ ""|help) echo "usage: oot.sh [list] command [arg...]"; exit 0;;
*) echo >&2 "unknown command: $cmd"; exit 1;;
esac
*) echo >&2 "unknown command: $cmd"; exit 1;;
esac
-done < oot.txt
+done
+}
+
+if [ -n "$list" ]; then
+ process_list < "$list"
+else
+ process_list < oot.txt
+ process_list < nitpm_packages.txt
+fi