Skip to content

Commit

Permalink
Script for generating the index.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed May 3, 2017
1 parent 0999137 commit e8e7e50
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build_index.sh
@@ -0,0 +1,14 @@
#!/bin/bash
# Update the index for all release tags

# 2.x releases have no 'zopeapp-versions.cfg'
printf "# zopetoolkit Releases\n\n" > README.md
for tag in $(git tag -l "2*" | sort -r); do
echo $tag
printf "## $tag\n\n- [ztk-versions.cfg](releases/$tag/ztk-versions.cfg)\n\n" >> README.md;
done

for tag in $(git tag -l "1*" | grep -v dev- | sort -r); do
echo $tag
printf "## $tag\n\n- [ztk-versions.cfg](releases/$tag/ztk-versions.cfg)\n- [zopeapp-versions.cfg](releases/$tag/zopeapp-versions.cfg)\n\n" >> README.md;
done

0 comments on commit e8e7e50

Please sign in to comment.