Commit in SimDist/scripts on MAIN
install-geant4-data.sh.in+33added 1.1
geant4 data download script

SimDist/scripts
install-geant4-data.sh.in added at 1.1
diff -N install-geant4-data.sh.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ install-geant4-data.sh.in	18 Jul 2012 22:21:32 -0000	1.1
@@ -0,0 +1,33 @@
+echo "installing Geant4 data files ..."
+
+# local data dir
+datadir=@SIMDIST_G4DATA_DIR@
+
+# base URL for data download
+url_base=@SIMDIST_G4DATA_URL@
+
+# remove any old data
+echo "cleaning up data dir ..."
+rm -rf $datadir/*
+
+# get data files
+echo "fetching data files from ${url_base}" 
+wget -nv -P ${datadir} \
+${url_base}/@G4NDL_FILE@ \
+${url_base}/@G4EMLOW_FILE@ \
+${url_base}/@G4RadioactiveDecay_FILE@ \
+${url_base}/@G4PhotonEvaporation_FILE@ 
+
+# unzip data files
+echo "unzipping local files ..."
+(
+cd ${datadir}
+for t in $(ls *.tar.gz); do
+  echo "unzipping $t ..."
+  tar -zxf ${t}
+done
+)
+
+echo "done!"
+
+#rm -rf $(PWD)/data/*.tar.gz
\ No newline at end of file
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1