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