----------------------------------------------------------------------- # Make VOLUME images first -- Can comment when finished so # this script can be easily rerun if needed. #----------------------------------------------------------------------- cd /n/diraid02/data/lien/dihvnv_enc/ mkdir VOLUME mkdir VOLUME/dihvnv_3001 cd VOLUME/dihvnv_3001 ln -s ../../aareadme.txt aareadme.txt ln -s ../../voldesc.cat voldesc.cat ln -s ../../calib calib ln -s ../../catalog catalog ln -s ../../data data ln -s ../../document document ln -s ../../index index #----------------------------------------------------------------------- # Make MD5 checksums for this volume #----------------------------------------------------------------------- cd /n/diraid02/data/lien/dihvnv_enc/ mkpdssum -f -l -x CODE -x dataset.html -x DOWNLOAD -x NOTES -x VOLUME #----------------------------------------------------------------------- # Make DOWNLOAD files for these but first temporarily rename # the top-level directory to the volume ID to make "nice" # download files. #----------------------------------------------------------------------- cd /n/diraid02/data/lien/dihvnv_enc/DOWNLOAD rm dihvnv_3001.zip dihvnv_3001.iso MD5SUM cd /n/diraid02/data/lien/ mv dihvnv_enc dihvnv_3001 zip -r dihvnv_3001/DOWNLOAD/dihvnv_3001.zip \ dihvnv_3001/aareadme.txt \ dihvnv_3001/catalog \ dihvnv_3001/document \ dihvnv_3001/index \ dihvnv_3001/voldesc.cat ##tar -cvf dihvnv_3001/DOWNLOAD/dihvnv_3001_calib.tar dihvnv_3001/calib mv dihvnv_3001 dihvnv_enc #----------------------------------------------------------------------- # Make VOLUME/ and an ISO image of it #----------------------------------------------------------------------- cd /n/diraid02/data/lien/dihvnv_enc/VOLUME mkisofs -iso-level 2 \ -follow-links \ -publisher "PDS Small Bodies Node, Comet Subnode" \ -volset "DEEP IMPACT ENCOUNTER REDUCED HRIV NAV IMAGES" \ -V "DIHVNV_3001" \ -o /n/diraid02/data/lien/dihvnv_enc/DOWNLOAD/dihvnv_3001.iso \ dihvnv_3001 #----------------------------------------------------------------------- # Make checksum.md5 for all files in DOWNLOAD/, and rename the # top-leve directory #----------------------------------------------------------------------- cd /n/diraid02/data/lien/dihvnv_enc/DOWNLOAD mkpdssum -p -x checksum . mv checksum.tab MD5SUM