package=mercurial version=2.2.3 depends=python basename=mercurial-$version source=$basename.tar.gz url=http://mercurial.selenic.com/release/$source all:V: $source @{cd $basename/contrib/plan9 && mk install} clean:V: rm -rf $basename^* $source:V: hget -o $target $url tar xf $target # fix tar permissions (make group writable) for(f in `{du -a $basename | awk '{print $2}'}) chmod g+w $f contrib/create:VQ: dopts=() for(d in $depends) dopts=($dopts -d $d) echo contrib/create $dopts $package $package.proto contrib/push:VQ: echo contrib/push $package