source: gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes/SUBMIT-ALL-OPENANNOTATION-LISTS.sh@ 37120

Last change on this file since 37120 was 37081, checked in by davidb, 16 months ago

Now operational

  • Property svn:executable set to *
File size: 705 bytes
Line 
1#!/bin/bash
2
3oalist_files=`find archives -name "openannotation-list*.json" -print`
4
5
6echo ""
7echo "Deleting any existing IDs"
8for oalist_file in $oalist_files ; do
9 echo " $oalist_file"
10
11 oal_resource_ids=`./oalist-resoure-ids.py $oalist_file`
12
13 for oal_resource_id in $oal_resource_ids ; do
14 echo " $oal_resource_id"
15 ./DELETE-OPENANNOTATION-LIST.sh $oal_resource_id
16 done
17
18done
19
20echo "Done deleting any previous existing IDs ... moving on to submitting annotation IDs"
21sleep 2
22
23
24echo ""
25echo "Populating with new versions of OpenAnnotation-List JSON files"
26
27for oalist_file in $oalist_files ; do
28 echo $oalist_file
29 ./SUBMIT-OPENANNOTATION-LIST.sh $oalist_file
30done
31
32
Note: See TracBrowser for help on using the repository browser.