aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mkrelease.sh')
-rwxr-xr-xmkrelease.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/mkrelease.sh b/mkrelease.sh
new file mode 100755
index 0000000..ec35c74
--- /dev/null
+++ b/mkrelease.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+source /etc/init.d/functions.sh
+
+PROJECT=porticron
+VERSION=$(sed 's/^:Version: \(.*\)/\1/;t;d' README)
+
+mkdir -p ~/public_html/projects/${PROJECT}/dist
+
+ebegin "Creating release tarball"
+git-archive --format=tar --prefix=${PROJECT}-${VERSION}/ HEAD | \
+bzip2 > ~/public_html/projects/${PROJECT}/dist/${PROJECT}-${VERSION}.tar.bz2
+eend $?
+
+ebegin "Generating project page"
+rst2html.py < README > ~/public_html/projects/${PROJECT}/index.html
+eend $?