Mercurial > hg
view contrib/dockerrpm @ 21587:02a8612ddec2
committablectx: add subrev method to return None
This allows a future patch to use object oriented style to remove an if
statement in the status method.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Fri, 20 Sep 2013 22:07:58 -0500 |
parents | f1bcc33a5c52 |
children | 76a347bcdb33 |
line wrap: on
line source
#!/bin/bash BUILDDIR=$(dirname $0) ROOTDIR=$(cd $BUILDDIR/..; pwd) if which docker >> /dev/null ; then DOCKER=docker elif which docker.io >> /dev/null ; then DOCKER=docker.io fi $DOCKER build --tag "hg-dockerrpm-$1" - < $BUILDDIR/docker/$1 $DOCKER run --rm -v $ROOTDIR:/hg "hg-dockerrpm-$1" bash -c \ "cp -a hg hg-build; cd hg-build; make clean local $1; cp packages/$1/* /hg/packages/$1/"