Mercurial > repos > mvdbeek > print_gitrevision
comparison cat_gitrevision.xml @ 0:9b58e027065a draft
"planemo upload for repository https://gist.github.com/mvdbeek/5635b2941da1419dc7f065254e0c95c2"
author | mvdbeek |
---|---|
date | Tue, 22 Feb 2022 20:22:48 +0000 |
parents | |
children | 1db0bda09182 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9b58e027065a |
---|---|
1 <tool id="print_gitrevision" name="Print GITREVISION" version="0.1.0" profile="20.01"> | |
2 <command detect_errors="exit_code"><![CDATA[ | |
3 cp '$gitrevision' '$output' | |
4 ]]></command> | |
5 <configfiles> | |
6 <configfile name="gitrevision">#echo open('/GITREVISION').read()</configfile> | |
7 </configfiles> | |
8 <outputs> | |
9 <data name="output" format="txt" label="GITREVISION"/> | |
10 </outputs> | |
11 <!-- If you want to run this test place a file with "my content" into /GITREVISION | |
12 <tests> | |
13 <test> | |
14 <output name="output"> | |
15 <assert_contents> | |
16 <has_text text="my content"/> | |
17 </assert_contents> | |
18 </output> | |
19 </test> | |
20 </tests> | |
21 --> | |
22 <help><![CDATA[ | |
23 Prints out the contents of /GITREVISION | |
24 ]]></help> | |
25 </tool> |