Source

omy / copy-OMyMakefile

Full commit
#!/bin/sh

# set -e

for i in `find .. -iname OMakefile | xargs grep -l 'file-exists OMakeroot'`
do
  dir=`dirname $i`
  echo $dir
  if [ `hg branch` = "default" ]; then
    cp OMyMakefile $dir
    (cd $dir; hg commit -m 'auto update of OMyMakefile' OMyMakefile)
  else
    echo $dir is not in default
  fi
done