forked from ungleich-public/ccollect
update release script
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
bf22075407
commit
1943bfd244
1 changed files with 20 additions and 19 deletions
39
release.sh
39
release.sh
|
@ -20,38 +20,39 @@
|
||||||
# Standard release script for dummies like me
|
# Standard release script for dummies like me
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 2 ]; then
|
||||||
echo "$0: ccollect dir"
|
echo "$0: version description"
|
||||||
exit 23
|
exit 23
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Did you change version and date information in the script?"
|
echo "Did you change version and date information in the script?"
|
||||||
read bla
|
read bla
|
||||||
|
|
||||||
NAME=$1
|
VERSION="$1"; shift
|
||||||
|
DESCRIPTION="$1"; shift
|
||||||
|
NAME=ccollect-${VERSION}
|
||||||
TARNAME=${NAME}.tar.bz2
|
TARNAME=${NAME}.tar.bz2
|
||||||
|
TARLOCAL=../${TARNAME}
|
||||||
DHOST=nico@home.schottelius.org
|
DHOST=nico@home.schottelius.org
|
||||||
DDIR=www/org/schottelius/unix/www/ccollect/
|
DDIR=www/unix.schottelius.org/www/ccollect/
|
||||||
DESTINATION="$DHOST:$DDIR"
|
DESTINATION="$DHOST:$DDIR"
|
||||||
|
|
||||||
# create documentation for the end user
|
set -e
|
||||||
(
|
set -x
|
||||||
cd "$NAME"
|
git tag -m "$DESCRIPTION" "$VERSION"
|
||||||
make dist
|
git push --mirror
|
||||||
make publish-doc
|
git archive --prefix="${NAME}/" "$VERSION" | bzip2 > "$TARLOCAL"
|
||||||
)
|
scp "${TARLOCAL}" "$DESTINATION"
|
||||||
|
|
||||||
tar cvfj "$TARNAME" \
|
# create & publish documentation for the end user
|
||||||
--exclude=.git \
|
make publish-doc
|
||||||
--exclude="conf/sources/*/destination/*" "$NAME"
|
|
||||||
|
|
||||||
scp "${TARNAME}" "$DESTINATION"
|
|
||||||
|
|
||||||
ssh "$DHOST" "( cd $DDIR; tar xfj \"$TARNAME\" )"
|
ssh "$DHOST" "( cd "$DDIR" &&; tar xfj \"$TARNAME\" )"
|
||||||
|
|
||||||
echo "setting paranoid permissions to public..."
|
echo "setting paranoid permissions to public..."
|
||||||
ssh "$DHOST" "( cd $DDIR; find -type d -exec chmod 0755 {} \; )"
|
ssh "$DHOST" "( cd "$DDIR" && find -type d -exec chmod 0755 {} \; )"
|
||||||
ssh "$DHOST" "( cd $DDIR; find -type f -exec chmod 0644 {} \; )"
|
ssh "$DHOST" "( cd "$DDIR" &&; find -type f -exec chmod 0644 {} \; )"
|
||||||
|
|
||||||
cat "${NAME}/doc/release-checklist"
|
cat "doc/release-checklist"
|
||||||
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue