blob: 01aa5d52c665c43682a30b82a02da343717fc24b [file] [log] [blame]
Nicolas De Loof58826312014-11-28 10:52:05 +01001#!/usr/local/Cellar/bash/4.3.30/bin/bash
2set -e
3
4declare -A aliases
5aliases=(
6 [1.592]='weekly'
7 [1.580.1]='latest'
8)
9
10versions=( */ )
11versions=( "${versions[@]%/}" )
12url='git://github.com/cloudbees/jenkins-ci.org-docker'
13
14echo '# maintainer: Nicolas De Loof <nicolas.deloof@gmail.com> (@ndeloo)'
15
16for version in "${versions[@]}"; do
17 commit="$(git log -1 --format='format:%H' -- "$version")"
18 versionAliases=( $version ${aliases[$version]} )
19
20 echo
21 for va in "${versionAliases[@]}"; do
22 echo "$va: ${url}@${commit} $version"
23 done
24done