#----------------------------------------------------------------------- # Make VOLUME images first -- Can comment when finished so # this script can be easily rerun if needed. #----------------------------------------------------------------------- cd /n/diraid02/data/lien/dihvnv_rawcru/ mkdir VOLUME mkdir VOLUME/dihvnv_1001 cd VOLUME/dihvnv_1001 ln -s ../../aareadme.txt aareadme.txt ln -s ../../voldesc.cat voldesc.cat 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_rawcru/ 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_rawcru/DOWNLOAD rm dihvnv_1001.zip dihvnv_1001.iso MD5SUM cd /n/diraid02/data/lien/ mv dihvnv_rawcru dihvnv_1001 zip -r dihvnv_1001/DOWNLOAD/dihvnv_1001.zip \ dihvnv_1001/aareadme.txt \ dihvnv_1001/catalog \ dihvnv_1001/document \ dihvnv_1001/index \ dihvnv_1001/voldesc.cat tar -cvf dihvnv_1001/DOWNLOAD/dihvnv_1001_data.tar dihvnv_1001/data mv dihvnv_1001 dihvnv_rawcru #----------------------------------------------------------------------- # Make VOLUME/ and an ISO image of it #----------------------------------------------------------------------- cd /n/diraid02/data/lien/dihvnv_rawcru/VOLUME mkisofs -iso-level 2 \ -follow-links \ -publisher "PDS Small Bodies Node, Comet Subnode" \ -volset "DEEP IMPACT CRUISE RAW HRIV NAV IMAGES" \ -V "DIHVNV_1001" \ -o /n/diraid02/data/lien/dihvnv_rawcru/DOWNLOAD/dihvnv_1001.iso \ dihvnv_1001 #----------------------------------------------------------------------- # Make checksum.md5 for all files in DOWNLOAD/, and rename the # top-level directory #----------------------------------------------------------------------- cd /n/diraid02/data/lien/dihvnv_rawcru/DOWNLOAD mkpdssum -p -x checksum . mv checksum.tab MD5SUM cd /n/diraid02/data/lien/