From ca53a30f4cd72206d3e8a37bf9619191cc665f17 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 11 Jul 2009 21:43:08 +0000 Subject: [PATCH] release build script (fixes #35, #36) * release/build.sh - build code and resource tarballs - generate md5 hashes and gpg signatures --- release/build.sh | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 release/build.sh diff --git a/release/build.sh b/release/build.sh new file mode 100755 index 0000000..d65af3d --- /dev/null +++ b/release/build.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# +# Build script for ScrollingJQueryGallery +# +# Author: Jan Dittberner +# +# Copyright © 2009 Jan Dittberner +# Jan Dittberner IT-Consulting & -Solutions +# Cottbuser Str. 1, D-01129 Dresden, Germany +# +# This file is part of the ScrollingJQueryGallery component of the +# gnuviech-server.de Websitetools +# +# ScrollingJQueryGallery is free software: you can redistribute it +# and/or modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# ScrollingJQueryGallery is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied warranty +# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with ScrollingJQueryGallery. If not, see +# . + +set -e + +BASEPATH=`dirname "$0"`/.. +VERSION="0.2" +PROJECT="scrollingjquerygallery" + +BASEPATH=`realpath "${BASEPATH}"` +TEMPDIR=`mktemp -d` + +ln -s "$BASEPATH" "${TEMPDIR}/${PROJECT}-${VERSION}" + +# release tar file +TARFILE=`realpath "${BASEPATH}/../"`/${PROJECT}-${VERSION}.tar.gz +tar czhf "$TARFILE" -C "${TEMPDIR}" \ + --exclude '*/.git' --exclude '*/bilder' --exclude '.svn' \ + --exclude '*~' --exclude 'gallery.ini' \ + "${PROJECT}-${VERSION}" +gpg --detach-sign --armor "$TARFILE" +md5sum "$TARFILE" > "$TARFILE.md5" +echo "release is in $TARFILE" + +# sample images tar file +TARFILE=`realpath "${BASEPATH}/../"`/${PROJECT}-resources-${VERSION}.tar.gz +tar czhf "$TARFILE" -C "${TEMPDIR}" \ + --exclude '.svn' "${PROJECT}-${VERSION}/bilder" +gpg --detach-sign --armor "$TARFILE" +md5sum "$TARFILE" > "$TARFILE.md5" +echo "resources are in $TARFILE" + +rm -r "$TEMPDIR"