github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/contrib/reprepro/suites.sh (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  cd "$(dirname "$BASH_SOURCE")/../.."
     5  
     6  targets_from() {
     7         git fetch -q https://github.com/docker/docker.git "$1"
     8         git ls-tree -r --name-only "$(git rev-parse FETCH_HEAD)" contrib/builder/deb/ | grep '/Dockerfile$' | sed -r 's!^contrib/builder/deb/|^contrib/builder/deb/amd64/|-debootstrap|/Dockerfile$!!g' | grep -v /
     9  }
    10  
    11  release_branch=$(git ls-remote --heads https://github.com/docker/docker.git | awk -F 'refs/heads/' '$2 ~ /^release/ { print $2 }' | sort -V | tail -1)
    12  { targets_from master; targets_from "$release_branch"; } | sort -u