Sha256: 3139a1c4360783ca1a4d0987473dd73bdb1c323d78de156e9788768fe23426df

Contents?: true

Size: 721 Bytes

Versions: 12

Compression:

Stored size: 721 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 $TMP/$PROJECT/Makefile
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

12 entries across 12 versions & 1 rubygems

Version Path
review-5.10.0 vendor/gentombow/create_archive.sh
review-5.9.0 vendor/gentombow/create_archive.sh
review-5.8.0 vendor/gentombow/create_archive.sh
review-5.7.0 vendor/gentombow/create_archive.sh
review-5.6.0 vendor/gentombow/create_archive.sh
review-5.5.0 vendor/gentombow/create_archive.sh
review-5.4.0 vendor/gentombow/create_archive.sh
review-5.3.0 vendor/gentombow/create_archive.sh
review-5.2.0 vendor/gentombow/create_archive.sh
review-5.1.1 vendor/gentombow/create_archive.sh
review-5.1.0 vendor/gentombow/create_archive.sh
review-5.0.0 vendor/gentombow/create_archive.sh