asteroid/generate-service-file.sh

29 lines
673 B
Bash

#!/bin/sh
commit=4efc7fc0a1246f023d6f96b94081678e302ab430
shortcommit=$(c=${commit}; echo ${c:0:7})
version=1.2.1+git
echo -n "Creating _service file ..."
cat << EOF > _service
<services>
<service name="tar_scm">
<param name="scm">git</param>
<param name="url">git://github.com/chazomaticus/asteroid.git</param>
<param name="version">${version}-${shortcommit}</param>
<param name="revision">${commit}</param>
<param name="package-meta">yes</param>
</service>
<service name="recompress">
<param name="compression">bz2</param>
<param name="file">*.tar</param>
</service>
<service name="download_files" />
</services>
EOF
echo done