Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2848fbc3cf
Fetching contributors…

Cannot retrieve contributors at this time

executable file 36 lines (30 sloc) 0.687 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#!/bin/sh -e
#
# TODO:
#
# * Make it generate a new version number.
# * Set a tag in git.
# * Generate a rockspec.
# * Upload the tarball to github.
# * Announce

version=$(git tag -l | tail -1)

name="lua-ev-$version"

tmp="$TEMPDIR"
if [ -z "$tmp" ]; then
   tmp="$HOME/Desktop"
fi

src="$(cd "$(dirname $0)" && pwd)"

cd $tmp
rm -f "$name"
ln -sf "$src" "$name"

echo "Creating $tmp/$name.tar.gz"
tar -czvpf "$name.tar.gz" \
    --dereference \
    --exclude "$name/.git" \
    --exclude "$name/rockspec" \
    --exclude "$name/$(basename $0)" \
    "$name"
echo "Creating $tmp/$name-1.rockspec"
cat "$src/lua-ev.rockspec" | \
    sed s/@VERSION@/$version/ > \
    "$name-1.rockspec"
Something went wrong with that request. Please try again.