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
  branch=`hg branch`
  if [ "$branch" = "default" ]; then
    cp OMyMakefile $dir
    cp OMakeroot.in $dir
    (cd $dir; hg add OMyMakefile OMakeroot.in; hg commit -m 'auto update of OMyMakefile' OMyMakefile OMakeroot.in)
  else
    echo "$dir is not in default: $branch"
  fi
done