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 c5588cf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build_index.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# Update the index for all release tags

printf "# zopetoolkit Releases\n\n" > README.md
rm -rf releases
# 2.x releases have no 'zopeapp-versions.cfg'

for tag in $(git tag -l "2*" | sort -r); do
echo $tag
git show $tag:ztk-versions.cfg > releases/$tag/ztk-versions.cfg
mkdir -p releases/$tag
git show $tag:ztk-versions.cfg > releases/$tag/ztk-versions.cfg
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
mkdir -p releases/$tag
git show $tag:ztk-versions.cfg > releases/$tag/ztk-versions.cfg
git show $tag:zopeapp-versions.cfg > releases/$tag/zopeapp-versions.cfg
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 c5588cf

Please sign in to comment.