Sha256: a21df6dbf7192b5cae060ee7a434d27da90ed2f358cf5c0521d9bdc91c460900

Contents?: true

Size: 695 Bytes

Versions: 9

Compression:

Stored size: 695 Bytes

Contents

#!/bin/sh

PROJECT=gentombow
TMP=/tmp
PWDF=`pwd`
LATESTRELEASEDATE=`git tag | sort -r | head -n 1`
RELEASEDATE=`git tag --points-at HEAD | sort -r | head -n 1`

if [ -z "$RELEASEDATE" ]; then
    RELEASEDATE="**not tagged**; later than $LATESTRELEASEDATE?"
fi

echo " * Create $PROJECT.zip ($RELEASEDATE)"
git archive --format=tar --prefix=$PROJECT/ HEAD | (cd $TMP && tar xf -)
rm $TMP/$PROJECT/.gitignore
rm $TMP/$PROJECT/create_archive.sh
rm -rf $TMP/$PROJECT/tests
perl -pi.bak -e "s/\\\$RELEASEDATE/$RELEASEDATE/g" $TMP/$PROJECT/README.md
rm -f $TMP/$PROJECT/README.md.bak

cd $TMP && zip -r $PWDF/$PROJECT.zip $PROJECT
rm -rf $TMP/$PROJECT
echo
echo " * Done: $PROJECT.zip ($RELEASEDATE)"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
review-4.2.0 vendor/gentombow/create_archive.sh
review-4.1.0 vendor/gentombow/create_archive.sh
review-4.0.0 vendor/gentombow/create_archive.sh
review-3.2.0 vendor/gentombow/create_archive.sh
review-3.1.0 vendor/gentombow/create_archive.sh
review-3.0.0 vendor/gentombow/create_archive.sh
review-3.0.0.rc1 vendor/gentombow/create_archive.sh
review-3.0.0.preview4 vendor/gentombow/create_archive.sh
review-3.0.0.preview3 vendor/gentombow/create_archive.sh