changeset 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
files cat_gitrevision.xml
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cat_gitrevision.xml	Tue Feb 22 20:22:48 2022 +0000
@@ -0,0 +1,25 @@
+<tool id="print_gitrevision" name="Print GITREVISION" version="0.1.0" profile="20.01">
+    <command detect_errors="exit_code"><![CDATA[
+cp '$gitrevision' '$output'
+    ]]></command>
+    <configfiles>
+        <configfile name="gitrevision">#echo open('/GITREVISION').read()</configfile>
+    </configfiles>
+    <outputs>
+        <data name="output" format="txt" label="GITREVISION"/>
+    </outputs>
+    <!-- If you want to run this test place a file with "my content" into /GITREVISION
+    <tests>
+        <test>
+            <output name="output">
+                <assert_contents>
+                    <has_text text="my content"/>
+                </assert_contents>
+            </output>
+        </test>
+    </tests>
+    -->
+    <help><![CDATA[
+Prints out the contents of /GITREVISION
+    ]]></help>
+</tool>