Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add tagging and wiki section generation to the release script.
Tag the release before generating it, and automatically generate
a template for use in updating the wiki page.  Also, make the
output directory unique to each release, delete any prior contents,
and tell the user where to find it.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
  • Loading branch information
stephensmalley committed Oct 30, 2013
1 parent 674e068 commit 75740f4
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions scripts/release
@@ -1,12 +1,30 @@
#!/bin/bash

DEST=../selinux-$(date '+%Y%m%d')
DIRS="libsepol libselinux libsemanage policycoreutils checkpolicy sepolgen"

mkdir -p ../selinux-dev-release
git tag -a $(date '+%Y%m%d') -m "Release $(date '+%Y%m%d')"

rm -rf $(DEST)
mkdir -p $(DEST)

for i in $DIRS; do
cd $i
git archive --format=tar --prefix=$i-`cat VERSION`/ HEAD | gzip > ../../selinux-dev-release/$i-`cat VERSION`.tar.gz
git archive --format=tar --prefix=$i-`cat VERSION`/ HEAD | gzip > ../$(DEST)/$i-`cat VERSION`.tar.gz
cd ..
done

pushd $(DEST)

echo "Copy contents of $(DEST) to the server and add the following to the Releases wiki page:"

echo "== Release $(date '+%Y-%m-%d') =="

for i in *.tar.gz; do
echo "[http://userspace.selinuxproject.org/releases/$(date '+%Y%m%d')/$i $i]"
echo ""
echo "`sha256sum $i`"
echo ""
done

popd

0 comments on commit 75740f4

Please sign in to comment.