mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-18 20:21:18 +00:00
a foreach command
This commit is contained in:
parent
8eaeeaad1f
commit
561a08c232
8
all
8
all
@ -162,6 +162,13 @@ case "$cmd" in
|
||||
fi
|
||||
exec "darkplaces/darkplaces$client" -xonotic $@
|
||||
;;
|
||||
each)
|
||||
for d in $repos; do
|
||||
cd "$d0/$d"
|
||||
"$@"
|
||||
cd "$d0"
|
||||
done
|
||||
;;
|
||||
*)
|
||||
echo "Usage:"
|
||||
echo " $0 pull"
|
||||
@ -171,5 +178,6 @@ case "$cmd" in
|
||||
echo " $0 checkout"
|
||||
echo " $0 compile"
|
||||
echo " $0 run <client> <options>"
|
||||
echo " $0 each <command>"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user