moby--moby/project/make
Tianon Gravi 0fab79f203 Update .deb version numbers to be more sane
Example output:
```console
root@906b21a861fb:/go/src/github.com/docker/docker# ./hack/make.sh binary ubuntu
bundles/1.4.1-dev already exists. Removing.

---> Making bundle: binary (in bundles/1.4.1-dev/binary)
Created binary: /go/src/github.com/docker/docker/bundles/1.4.1-dev/binary/docker-1.4.1-dev

---> Making bundle: ubuntu (in bundles/1.4.1-dev/ubuntu)
Created package {:path=>"lxc-docker-1.4.1-dev_1.4.1~dev~git20150128.182847.0.17e840a_amd64.deb"}
Created package {:path=>"lxc-docker_1.4.1~dev~git20150128.182847.0.17e840a_amd64.deb"}

```

As noted in a comment in the code here, this sums up the reasoning for this change: (which is how APT and reprepro compare versions)
```console
$ dpkg --compare-versions 1.5.0 gt 1.5.0~rc1 && echo true || echo false
true
$ dpkg --compare-versions 1.5.0~rc1 gt 1.5.0~git20150128.112847.17e840a && echo true || echo false
true
$ dpkg --compare-versions 1.5.0~git20150128.112847.17e840a gt 1.5.0~dev~git20150128.112847.17e840a && echo true || echo false
true
```

ie, `1.5.0` > `1.5.0~rc1` > `1.5.0~git20150128.112847.17e840a` > `1.5.0~dev~git20150128.112847.17e840a`

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
2015-01-28 14:26:40 -07:00
..
.dockerinit Let's try fixing "netgo" again 2015-01-19 12:48:25 -07:00
.ensure-busybox Update emptyfs support to work properly if scratch is already an image 2015-01-20 16:26:04 -07:00
.ensure-emptyfs Update emptyfs support to work properly if scratch is already an image 2015-01-20 16:26:04 -07:00
.go-compile-test-dir Fix a few minor issues with building/running inside msysGit 2015-01-09 17:28:40 -07:00
.integration-daemon-start Export DOCKER_GRAPHDRIVER and DOCKER_EXECDRIVER in integration-cli 2015-01-27 16:40:11 -08:00
.integration-daemon-stop Fix a few minor issues with building/running inside msysGit 2015-01-09 17:28:40 -07:00
.validate Move 'hack' to the less confusing 'project' 2014-11-09 21:50:28 +00:00
README.md Move 'hack' to the less confusing 'project' 2014-11-09 21:50:28 +00:00
binary Fix a few minor issues with building/running inside msysGit 2015-01-09 17:28:40 -07:00
cover Move 'hack' to the less confusing 'project' 2014-11-09 21:50:28 +00:00
cross Move 'hack' to the less confusing 'project' 2014-11-09 21:50:28 +00:00
dynbinary Let's try fixing "netgo" again 2015-01-19 12:48:25 -07:00
test-docker-py Properly fix "daemon kill" on test failure 2015-01-13 21:12:07 -07:00
test-integration Let's try fixing "netgo" again 2015-01-19 12:48:25 -07:00
test-integration-cli Update emptyfs support to work properly if scratch is already an image 2015-01-20 16:26:04 -07:00
test-unit Let's try fixing "netgo" again 2015-01-19 12:48:25 -07:00
tgz Fix tgz for Windows binaries 2015-01-12 19:56:53 -07:00
ubuntu Update .deb version numbers to be more sane 2015-01-28 14:26:40 -07:00
validate-dco Remove small patch exception checking in hack/make/validate-dco 2014-12-17 10:02:36 +10:00
validate-gofmt Move 'hack' to the less confusing 'project' 2014-11-09 21:50:28 +00:00

README.md

This directory holds scripts called by make.sh in the parent directory.

Each script is named after the bundle it creates. They should not be called directly - instead, pass it as argument to make.sh, for example:

./hack/make.sh test
./hack/make.sh binary ubuntu

# Or to run all bundles:
./hack/make.sh

To add a bundle:

  • Create a shell-compatible file here
  • Add it to $DEFAULT_BUNDLES in make.sh