#!/bin/sh commit=4efc7fc0a1246f023d6f96b94081678e302ab430 shortcommit=$(c=${commit}; echo ${c:0:7}) version=1.2.1+git echo -n "Creating _service file ..." cat << EOF > _service git git://github.com/chazomaticus/asteroid.git ${version}-${shortcommit} ${commit} yes bz2 *.tar EOF echo done