#! /bin/sh
#domake
#Usage: domake "dir1 dir2 ..." "cmd"
#Changes to the specified directories and executes cmd in each.
#
for file in $1
    do
    echo "cd $file; $2"
    cd $file
    $2
    cd ..
    done
