blob: 8296393f4e1f19a5c179c46ebb38550bfdf691e0 [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
Nicolas De Loofc164ea12014-12-02 16:48:59 +010014echo '# maintainer: Nicolas De Loof <nicolas.deloof@gmail.com> (@ndeloof)'
15echo '# maintainer: Michael Neale <mneale@cloudbees.com> (@michaelneale)'
Nicolas De Loof58826312014-11-28 10:52:05 +010016
Nicolas De Loofc164ea12014-12-02 16:48:59 +010017echo
Nicolas De Loof58826312014-11-28 10:52:05 +010018for version in "${versions[@]}"; do
19 commit="$(git log -1 --format='format:%H' -- "$version")"
20 versionAliases=( $version ${aliases[$version]} )
21
Nicolas De Loof58826312014-11-28 10:52:05 +010022 for va in "${versionAliases[@]}"; do
23 echo "$va: ${url}@${commit} $version"
24 done
25done