2015-03-02 22:39:53 -05:00
#!/bin/sh
2015-08-13 16:59:10 -04:00
FHIRTRUNK = ~/workspace/fhir/trunk
2015-08-09 11:18:04 -04:00
rm hapi-tinder-plugin/src/main/resources/res/dstu2/*
2015-08-13 16:59:10 -04:00
for i in $( find $FHIRTRUNK /build/source -name *-spreadsheet.xml | egrep "/[a-z0-9]+-spreadsheet" ) ; do cp -v $i hapi-tinder-plugin/src/main/resources/res/dstu2/; done
2015-03-02 22:39:53 -05:00
2015-08-09 11:18:04 -04:00
rm hapi-tinder-plugin/src/main/resources/dt/dstu2/*
2015-08-13 16:59:10 -04:00
for i in $( find $FHIRTRUNK /build/source/datatypes | grep xml | grep -v spreadsheet | grep -v -) ; do cp -v $i hapi-tinder-plugin/src/main/resources/dt/dstu2/; done
2015-07-25 11:56:47 -04:00
2015-08-31 08:20:24 -04:00
cp $FHIRTRUNK /build/publish/valuesets.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/
cp $FHIRTRUNK /build/publish/v3-codesystems.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/
2015-09-01 17:02:35 -04:00
cp $FHIRTRUNK /build/publish/v2-codesystems.xml hapi-fhir-validation-resources/src/main/resources/org/hl7/fhir/instance/model/valueset/
2015-07-25 11:56:47 -04:00
# Schematron
2015-08-13 16:59:10 -04:00
rm hapi-fhir-structures-dstu2/src/main/resources/ca/uhn/fhir/model/dstu2/schema/*.sch
for i in $( ls $FHIRTRUNK /build/publish/*.sch | grep -v -) ; do cp -v $i hapi-fhir-structures-dstu2/src/main/resources/ca/uhn/fhir/model/dstu2/schema/; done
2015-07-25 11:56:47 -04:00
# Schema
2015-08-13 16:59:10 -04:00
cp $FHIRTRUNK /build/publish/fhir-single.xsd hapi-fhir-structures-dstu2/src/main/resources/ca/uhn/fhir/model/dstu2/schema/
cp $FHIRTRUNK /build/publish/fhir-xhtml.xsd hapi-fhir-structures-dstu2/src/main/resources/ca/uhn/fhir/model/dstu2/schema/
cp $FHIRTRUNK /build/publish/xml.xsd hapi-fhir-structures-dstu2/src/main/resources/ca/uhn/fhir/model/dstu2/schema/
2015-07-25 11:56:47 -04:00
2015-08-31 08:20:24 -04:00
#find hapi-tinder-plugin/src/main/resources/res/dstu2 | sed "s|.*/|<baseResourceName>|" | sed "s/-spread.*/<\/baseResourceName>/" | sort