2016-05-25 09:55:52 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-06-02 00:59:49 +02:00
|
|
|
commit=64869dfe745800f34f1c68248ba2e350dc95a592
|
2016-05-25 09:55:52 +02:00
|
|
|
shortcommit=$(c=${commit}; echo ${c:0:7})
|
|
|
|
version=1.2.1+git
|
|
|
|
|
|
|
|
echo -n "Creating _service file ..."
|
|
|
|
cat << EOF > _service
|
|
|
|
<services>
|
|
|
|
|
2016-05-30 05:08:57 +02:00
|
|
|
<service name="tar_scm" mode="disabled">
|
|
|
|
<param name="url">git://github.com/chazomaticus/asteroid.git</param>
|
|
|
|
<param name="scm">git</param>
|
|
|
|
<param name="version">${version}-${shortcommit}</param>
|
|
|
|
<param name="changesgenerate">enable</param>
|
|
|
|
</service>
|
2016-05-25 09:55:52 +02:00
|
|
|
|
2016-05-30 05:08:57 +02:00
|
|
|
<service name="recompress" mode="disabled">
|
|
|
|
<param name="file">*.tar</param>
|
|
|
|
<param name="compression">bz2</param>
|
|
|
|
</service>
|
|
|
|
<service name="set_version" mode="disabled"/>
|
2016-05-25 09:55:52 +02:00
|
|
|
|
|
|
|
</services>
|
|
|
|
EOF
|
|
|
|
echo done
|