Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2848fbc3cf
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (30 sloc) 0.687 kB
#!/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"
Jump to Line
Something went wrong with that request. Please try again.