diff --git a/scripts/pgit.sh b/scripts/pgit.sh index 927d137f..417f917c 100644 --- a/scripts/pgit.sh +++ b/scripts/pgit.sh @@ -93,6 +93,24 @@ cmd_run() done ) +cmd_exec() +( + local d + + set_global_variables + cd $projects_dir + + if [ "$PGIT_KEEP_GOING" != y ]; then set -e; fi + for d in $project_dirs; do + cur=`expr $cur + 1` + fat_marker $d: "$@" + ( + cd $d + "$@" + ) + done +) + cmd_commit() ( local d do_cvs @@ -278,7 +296,7 @@ while [ "${1:0:1}" = - ]; do done case $cmd in - get|diff|commit) + get|diff|commit|exec) cmd_${cmd//-/_} "$@" ;; *)