[med-svn] r18506 - in trunk/community: . edam

Steffen Möller moeller at moszumanska.debian.org
Fri Nov 21 12:32:25 UTC 2014


Author: moeller
Date: 2014-11-21 12:32:24 +0000 (Fri, 21 Nov 2014)
New Revision: 18506

Added:
   trunk/community/edam/
   trunk/community/edam/README.txt
   trunk/community/edam/debian2edam
Log:
Seed of a transwriting of Debian EDAM annotation to its JSON format

Added: trunk/community/edam/README.txt
===================================================================
--- trunk/community/edam/README.txt	                        (rev 0)
+++ trunk/community/edam/README.txt	2014-11-21 12:32:24 UTC (rev 18506)
@@ -0,0 +1,12 @@
+EDAM
+====
+
+The EDAM ontology [1] addresses the categorisation of tools
+and collections of tools that contribute to computational
+biology in its broadest sense. For a translation, some
+bits are meant to be read by traditional means as with
+dpkg-parsechangelog, for the EDAM annotation we had chosen
+a format compatible with YAML [2].
+
+[1] http://edamontology.org/
+[2] http://www.yaml.org/

Added: trunk/community/edam/debian2edam
===================================================================
--- trunk/community/edam/debian2edam	                        (rev 0)
+++ trunk/community/edam/debian2edam	2014-11-21 12:32:24 UTC (rev 18506)
@@ -0,0 +1,30 @@
+#!/bin/bash -e
+
+pathToDebian=$1
+
+USAGE=<<EOUSAGE
+debian2edam <path to 'debian' directory>
+EOUSAGE
+
+if [ ! -d "$pathToDebian" ]; then
+	echo "$USAGE"
+	echo "Could not find directory 'pathToDebian'"
+	exit -1
+fi
+cd $(dirname "$pathToDebian")
+
+edamfile="debian/upstream/edam"
+if [ ! -r "$edamfile" ]; then
+	echo "$USAGE"
+	echo "Could not access file '$edamfile' from $(pwd)"
+	exit -1
+fi
+
+package=$(dpkg-parsechangelog |grep ^Source | sed -e 's/`^Source: //' )
+version=$(dpkg-parsechangelog |grep ^Version | cut -f2  -d\  | sed -e 's/-[^-][^-]*//' )
+
+echo "Package $package"
+echo "Version $version"
+
+
+


Property changes on: trunk/community/edam/debian2edam
___________________________________________________________________
Added: svn:executable
   + *




More information about the debian-med-commit mailing list