jan
/
sjqg
已存档
1
0
派生 0

release build script (fixes #35, #36)

* release/build.sh
  - build code and resource tarballs
  - generate md5 hashes and gpg signatures
这个提交包含在:
Jan Dittberner 2009-07-11 21:43:08 +00:00
父节点 6c5f37eaa7
当前提交 ca53a30f4c
共有 1 个文件被更改,包括 57 次插入0 次删除

57
release/build.sh 可执行文件
查看文件

@ -0,0 +1,57 @@
#!/bin/sh
#
# Build script for ScrollingJQueryGallery
#
# Author: Jan Dittberner <jan@dittberner.info>
#
# 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
# <http://www.gnu.org/licenses/>.
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"