selinux/scripts/release

34 lines
718 B
Plaintext
Raw Normal View History

2009-03-12 05:23:32 +00:00
#!/bin/bash
DEST=../selinux-$(date '+%Y%m%d')
2009-03-12 05:23:32 +00:00
DIRS="libsepol libselinux libsemanage policycoreutils checkpolicy sepolgen"
git tag -a $(date '+%Y%m%d') -m "Release $(date '+%Y%m%d')"
rm -rf $DEST
mkdir -p $DEST
2009-03-12 05:23:32 +00:00
for i in $DIRS; do
cd $i
VERS=`cat VERSION`
ARCHIVE=$i-$VERS.tar.gz
git tag $i-$VERS > /dev/null 2>&1
git archive --format=tar --prefix=$i-$VERS/ $i-$VERS | gzip > ../$DEST/$ARCHIVE
2009-03-12 05:23:32 +00:00
cd ..
done
cd $DEST
echo "Copy *.tar.gz from $DEST to the server and add the following to the Releases wiki page:"
echo ""
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