4 echo "Assembling library for $BatchID"
6 #Produce the list of files to combine
7 ls root/Files$BatchID/ > temp${BatchID}_FileList.txt
9 #Make a string to feed to roor
10 echo ".L AssembleSingleFile.C" >> rootstring.txt
11 echo "AssembleSingleFile(\"temp${BatchID}_FileList.txt\", \"root/Files$BatchID/\",\"photlibrary/lib$BatchID.root\")" >> rootstring.txt
13 #Make root execute this command
14 cat rootstring.txt | root -l
16 #clean up temporaryfiles
17 rm temp${BatchID}_FileList.txt