2009-03-12 05:23:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-10-30 18:28:30 +00:00
|
|
|
DEST=../selinux-$(date '+%Y%m%d')
|
2009-03-12 05:23:32 +00:00
|
|
|
DIRS="libsepol libselinux libsemanage policycoreutils checkpolicy sepolgen"
|
|
|
|
|
2013-10-30 18:28:30 +00:00
|
|
|
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
|
2013-10-30 18:28:30 +00:00
|
|
|
git archive --format=tar --prefix=$i-`cat VERSION`/ HEAD | gzip > ../$(DEST)/$i-`cat VERSION`.tar.gz
|
2009-03-12 05:23:32 +00:00
|
|
|
cd ..
|
|
|
|
done
|
|
|
|
|
2013-10-30 18:28:30 +00:00
|
|
|
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
|