Author: [log in to unmask]
Date: Mon Feb 9 13:48:19 2015
New Revision: 3517
Log:
Add scripts to download schemas from their standard URLs.
Added:
projects/lcdd/trunk/scripts/download_gdml_schemas.sh (with props)
projects/lcdd/trunk/scripts/download_lcdd_schemas.sh (with props)
Added: projects/lcdd/trunk/scripts/download_gdml_schemas.sh
=============================================================================
--- projects/lcdd/trunk/scripts/download_gdml_schemas.sh (added)
+++ projects/lcdd/trunk/scripts/download_gdml_schemas.sh Mon Feb 9 13:48:19 2015
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+#
+# Script to download GDML schemas from standard URL.
+#
+
+# The first argument of the script is an optional target directory which must already exist.
+dir=$PWD
+if [ -n "$1" ]; then
+ dir=$1
+ if [[ ! -d "$dir" ]]; then
+ echo "ERROR: Directory $dir does not exist."
+ exit 1
+ fi
+fi
+
+# Use wget to download the schemas to the local dir.
+(
+cd $dir
+echo "gdml.xsd
+gdml_core.xsd
+gdml_define.xsd
+gdml_extensions.xsd
+gdml_materials.xsd
+gdml_parameterised.xsd
+gdml_replicas.xsd
+gdml_solids.xsd" > gdmlSchemaFiles.txt
+wget -i gdmlSchemaFiles.txt -B 'http://service-spi.web.cern.ch/service-spi/app/releases/GDML/schema/'
+rm gdmlSchemaFiles.txt
+)
Added: projects/lcdd/trunk/scripts/download_lcdd_schemas.sh
=============================================================================
--- projects/lcdd/trunk/scripts/download_lcdd_schemas.sh (added)
+++ projects/lcdd/trunk/scripts/download_lcdd_schemas.sh Mon Feb 9 13:48:19 2015
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+#
+# Script to download LCDD schemas from standard URL.
+#
+
+# The first argument of the script is an optional target directory which must already exist.
+dir=$PW D
+if [ -n "$1" ]; then
+ dir=$1
+ if [[ ! -d "$dir" ]]; then
+ echo "ERROR: Directory $dir does not exist."
+ exit 1
+ fi
+fi
+
+# Use wget to download the schemas to the local dir.
+(
+cd $dir
+echo "lcdd.xsd
+lcdd_display.xsd
+lcdd_fields.xsd
+lcdd_header.xsd
+lcdd_iddict.xsd
+lcdd_limits.xsd
+lcdd_regions.xsd
+lcdd_sensitive_detectors.xsd" > lcddSchemaFiles.txt
+wget -i lcddSchemaFiles.txt -B 'http://www.lcsim.org/schemas/lcdd/1.0/'
+rm lcddSchemaFiles.txt
+)
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1
|