ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HSCPValidation/scripts/genhtml.sh
Revision: 1.2
Committed: Tue Feb 9 20:27:34 2010 UTC (15 years, 2 months ago) by carrillo
Content type: application/x-sh
Branch: MAIN
CVS Tags: for_CMSSW_3_4_2, HEAD
Changes since 1.1: +3 -2 lines
Log Message:
update

File Contents

# Content
1 #!/bin/bash
2
3 export particle=`awk -F"=" '{print $2}' $1 | awk 'NR==1'`
4 export PDGId=`awk -F"=" '{print $2}' $1 | awk 'NR==2'`
5 export Mass=`awk -F"=" '{print $2}' $1 | awk 'NR==3'`
6 export nevents=`awk -F"=" '{print $2}' $1 | awk 'NR==4'`
7 export hscppevent=`awk -F"=" '{print $2}' $1 | awk 'NR==5'`
8 export release=`awk -F"=" '{print $2}' $1 | awk 'NR==6'`
9 export location=`awk -F"=" '{print $2}' $1 | awk 'NR==7'`
10
11 echo $particle
12
13 sed -e "s|-particle-|$particle|g" -e "s|-pdgid-|$PDGId|g" -e "s|-mass-|$Mass|g" -e "s|-nevents-|$nevents|g" -e "s|-hscppevents-|$hscppevent|g" -e "s|-release-|$release|g" -e "s|-location-|$location|g" indexTemplate.html > indextmp.html
14 mv indextmp.html $particle/index.html
15
16
17
18
19
20
21