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