$input_path = userdir
$sequence_name = 'SOLIDSPACK'
format($sequence_name,'upper'):$name_upper
format($sequence_name,'lower'):$name_lower

$archive_path =  userdir + '/ARCHIVE'
$output_path = $archive_path + '/' + $name_upper
$backup_path = 'none'

exists($archive_path,'directory'):$e
if ($e < 0.5) then 
   shell('mkdir ' + $archive_path)
endif
   
exists($output_path,'directory'):$e1
if ($e1 > 0.5) then 
   $i = 0
   $j = 0
   while (($i< 20) and ($j<20)) do 
      $j = $j + 1
      $i = $i + 1
      $istring=''
      format($i,1,0):$istring
      $backup_path = $output_path + '_' + $istring
      exists( $backup_path,'directory'):$e2
      if ($e2 > 0.5) then 
         if ($i = 20) then
            write('error','Too Many Backups: Abort')
            abort 
         endif
      else 
         shell('mv ' + $output_path + ' ' + $backup_path)
         write('error','Backup %s created',$istring)
         $i = 20
      endif
   endwhile
endif

shell('mkdir ' + $output_path)

"******** Create MACLIB ********"

$get_path = $input_path + '/maclib'
$put_path = $output_path +'/maclib'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,$0)
archive_file($get_path,$put_path,'archive_ALSOLIDSPACK') 
archive_file($get_path,$put_path,'archive_ALSOLIDSPACK2')
archive_file($get_path,$put_path,'archive_SUNALSOLIDSPACK')
archive_file($get_path,$put_path,'archive_SIMPLEXER')
archive_file($get_path,$put_path,'tancpx')
archive_file($get_path,$put_path,'onepul')
archive_file($get_path,$put_path,'twopul')
archive_file($get_path,$put_path,'tancpxt1rho')
archive_file($get_path,$put_path,'tancpxflip')
archive_file($get_path,$put_path,'c7inad2d')
archive_file($get_path,$put_path,'pisema2d')
archive_file($get_path,$put_path,'hetcorlgcp2d')
archive_file($get_path,$put_path,'wisetancp2d')
archive_file($get_path,$put_path,'exsy2d')
archive_file($get_path,$put_path,'br24q')
archive_file($get_path,$put_path,'mrev8q')
archive_file($get_path,$put_path,'swwhh4')
archive_file($get_path,$put_path,'lgcp')
archive_file($get_path,$put_path,'tancpxidref')
archive_file($get_path,$put_path,'tancpxtoss')
archive_file($get_path,$put_path,'onepultoss')
archive_file($get_path,$put_path,'tunerp')
archive_file($get_path,$put_path,'ssecho1d')
archive_file($get_path,$put_path,'tancpht1')
archive_file($get_path,$put_path,'tancpxfslg')
archive_file($get_path,$put_path,'tancpxecho')
archive_file($get_path,$put_path,'mqmas3qzf2d')
archive_file($get_path,$put_path,'mqmas5qzf2d')
archive_file($get_path,$put_path,'redor1tancp')
archive_file($get_path,$put_path,'redor1onepul')
archive_file($get_path,$put_path,'redor2onepul')
archive_file($get_path,$put_path,'redor2tancp')
archive_file($get_path,$put_path,'xx')
archive_file($get_path,$put_path,'xmx')
archive_file($get_path,$put_path,'wpmlg1d')
archive_file($get_path,$put_path,'wpmlg2d')
archive_file($get_path,$put_path,'stmas2d')
archive_file($get_path,$put_path,'stmasspltse2d2')
archive_file($get_path,$put_path,'stmasdqfspltse2d')
archive_file($get_path,$put_path,'stmasdqfse2d')
archive_file($get_path,$put_path,'stmasse2d1')
archive_file($get_path,$put_path,'stmasse2d2')
archive_file($get_path,$put_path,'stmasspltse2d1')
archive_file($get_path,$put_path,'stmaszf2d')

archive_file($get_path,$put_path,'dcptan')
archive_file($get_path,$put_path,'dcptan3drad')
archive_file($get_path,$put_path,'dcp2tan3drad')
archive_file($get_path,$put_path,'r14inad2d')
archive_file($get_path,$put_path,'spc5inad2d')
archive_file($get_path,$put_path,'babainad2d')
archive_file($get_path,$put_path,'fsredor')
archive_file($get_path,$put_path,'hetcortancp2d')
archive_file($get_path,$put_path,'br24')
archive_file($get_path,$put_path,'mrev8')
archive_file($get_path,$put_path,'dcptan3dspc5')
archive_file($get_path,$put_path,'tancp2drad')
archive_file($get_path,$put_path,'tancp2dspc5')
archive_file($get_path,$put_path,'mashmqc2d')
archive_file($get_path,$put_path,'masapt1d')
archive_file($get_path,$put_path,'cpinad2d')
archive_file($get_path,$put_path,'mqmas7qzf2d')
archive_file($get_path,$put_path,'mqmas9qzf2d')
archive_file($get_path,$put_path,'mashsqc2d')
archive_file($get_path,$put_path,'r2inv1d')
archive_file($get_path,$put_path,'tancpxpmlg')
archive_file($get_path,$put_path,'tancpxblew')
archive_file($get_path,$put_path,'tancpxdumbo')
archive_file($get_path,$put_path,'decorcptan2d')
archive_file($get_path,$put_path,'presto1cp')
archive_file($get_path,$put_path,'presto2cp')
archive_file($get_path,$put_path,'presto3cp')
archive_file($get_path,$put_path,'onepuldfs')
archive_file($get_path,$put_path,'c7inadwpmlg2d')
archive_file($get_path,$put_path,'wdumbo1d')
archive_file($get_path,$put_path,'wdumbot1d')
archive_file($get_path,$put_path,'c7inadwdumbot2d')
archive_file($get_path,$put_path,'c7inadwdumbogen2d')
archive_file($get_path,$put_path,'mqmas3qdfsspltse2d')
archive_file($get_path,$put_path,'mqmas3qspltse2d')
archive_file($get_path,$put_path,'mqmas3qse2d')
archive_file($get_path,$put_path,'ineptxyonepul')
archive_file($get_path,$put_path,'ineptxytancp')
archive_file($get_path,$put_path,'ineptxyrefonepul')
archive_file($get_path,$put_path,'ineptxyreftancp')
archive_file($get_path,$put_path,'onepuldpth')
archive_file($get_path,$put_path,'phtran')
archive_file($get_path,$put_path,'mqmas3q2d')
archive_file($get_path,$put_path,'mqmas3qdfs2d')
archive_file($get_path,$put_path,'mqmas3qdfszf2d')
archive_file($get_path,$put_path,'dipshftr12dfs')
archive_file($get_path,$put_path,'repdfs')
archive_file($get_path,$put_path,'mqmas3qfamspltse2d')
archive_file($get_path,$put_path,'mqmas3qfam2spltse2d')
archive_file($get_path,$put_path,'qcpmg1d')
archive_file($get_path,$put_path,'tancpechocpmg1d')
archive_file($get_path,$put_path,'dipshftsr4dfs')
archive_file($get_path,$put_path,'mqmas3qdfs2spltse2d')
archive_file($get_path,$put_path,'onepulmdfs')
archive_file($get_path,$put_path,'pboxonepul')
archive_file($get_path,$put_path,'pisematest1')
archive_file($get_path,$put_path,'pisematest2')
archive_file($get_path,$put_path,'sammy2d')
archive_file($get_path,$put_path,'cpcpmg1d')
archive_file($get_path,$put_path,'rocsa2d')
archive_file($get_path,$put_path,'lgcp2d')
archive_file($get_path,$put_path,'onepulxyr')
archive_file($get_path,$put_path,'tancpxyr')
archive_file($get_path,$put_path,'hetcorlgcp2d_1')
archive_file($get_path,$put_path,'hetcorlgcp2dxyr')
archive_file($get_path,$put_path,'trapdorycpx')
archive_file($get_path,$put_path,'trapdor1d')
archive_file($get_path,$put_path,'sc14inad2d')
archive_file($get_path,$put_path,'seac71d')
archive_file($get_path,$put_path,'tancp1dfprfdr')
archive_file($get_path,$put_path,'tancp1dptrfdr')
archive_file($get_path,$put_path,'tancpxpips')
archive_file($get_path,$put_path,'babadpinad2d')
archive_file($get_path,$put_path,'hahnecho1d')
archive_file($get_path,$put_path,'tancpxhahnecho')
archive_file($get_path,$put_path,'tancpxs')
archive_file($get_path,$put_path,'onepuls')
archive_file($get_path,$put_path,'tancpxrefs')
archive_file($get_path,$put_path,'r2inv1ds')
archive_file($get_path,$put_path,'hxr1817ct2ds')
archive_file($get_path,$put_path,'hxtm5ct2ds')
archive_file($get_path,$put_path,'hxidmissct2ds')
archive_file($get_path,$put_path,'xxctuc2ds')
archive_file($get_path,$put_path,'nccdqm3ds')
archive_file($get_path,$put_path,'cncc4ds')
archive_file($get_path,$put_path,'xxctuc1sh2ds')
archive_file($get_path,$put_path,'tancpht1rho')
archive_file($get_path,$put_path,'onepult1rho')
archive_file($get_path,$put_path,'hssmall')
archive_file($get_path,$put_path,'tancpxtoss5')
archive_file($get_path,$put_path,'onepulsfs')
archive_file($get_path,$put_path,'lgfmcp1d')
archive_file($get_path,$put_path,'shapedtwopul1d')
archive_file($get_path,$put_path,'onepulhs')
archive_file($get_path,$put_path,'hetcorsamlgcp2d_1')
archive_file($get_path,$put_path,'tancpxdec2')
archive_file($get_path,$put_path,'onepuldec2')
archive_file($get_path,$put_path,'wsam1d')
archive_file($get_path,$put_path,'wpmlgxmx1d')
archive_file($get_path,$put_path,'wdumboxmx1d')
archive_file($get_path,$put_path,'wdumbogen1d')
archive_file($get_path,$put_path,'super2d')
archive_file($get_path,$put_path,'hetcorpmlgcp2d_1')
archive_file($get_path,$put_path,'hetcordumbolgcp2d_1')
archive_file($get_path,$put_path,'tancpxedit')
archive_file($get_path,$put_path,'moistlkcp')
archive_file($get_path,$put_path,'sammymstlk2d')
archive_file($get_path,$put_path,'satrec1d')
archive_file($get_path,$put_path,'tancpxt1')
archive_file($get_path,$put_path,'onepulhspl')
archive_file($get_path,$put_path,'codex1d')
archive_file($get_path,$put_path,'tancpxref')
archive_file($get_path,$put_path,'jmasnca2d')
archive_file($get_path,$put_path,'jmasnco2d')
archive_file($get_path,$put_path,'wiselgcp2d')
archive_file($get_path,$put_path,'jmascaco2d')
archive_file($get_path,$put_path,'jmascacosh2d')
archive_file($get_path,$put_path,'hahnechodfs1d')
archive_file($get_path,$put_path,'grad_rec')
archive_file($get_path,$put_path,'grad_profile')
archive_file($get_path,$put_path,'ahXH')
archive_file($get_path,$put_path,'ahYXH')
archive_file($get_path,$put_path,'spsmall')
archive_file($get_path,$put_path,'jmascacoipap2d')
archive_file($get_path,$put_path,'rotorsynctest')
archive_file($get_path,$put_path,'onepulcpm')
archive_file($get_path,$put_path,'tancpxcpm')
archive_file($get_path,$put_path,'phasetest')
archive_file($get_path,$put_path,'wpmlgxmx1d1')
archive_file($get_path,$put_path,'onepulref')
archive_file($get_path,$put_path,'qcpmgsh1d')
//archive_file($get_path,$put_path,'ahX')
//archive_file($get_path,$put_path,'ahXX')
//archive_file($get_path,$put_path,'ahYXX')
//archive_file($get_path,$put_path,'ahYX')
//archive_file($get_path,$put_path,'ahXYX')

"Calibration Macros"

archive_file($get_path,$put_path,'reset_hetcor')
archive_file($get_path,$put_path,'reset_pisema')
archive_file($get_path,$put_path,'reset_c7')
archive_file($get_path,$put_path,'reset_fslg')
archive_file($get_path,$put_path,'reset_xx')
archive_file($get_path,$put_path,'reset_xmx')
archive_file($get_path,$put_path,'reset_redor1')
archive_file($get_path,$put_path,'reset_redor2')
archive_file($get_path,$put_path,'reset_wpmlg1d')
archive_file($get_path,$put_path,'reset_wpmlg2d')
archive_file($get_path,$put_path,'reset_br24q')
archive_file($get_path,$put_path,'reset_mrev8q')
archive_file($get_path,$put_path,'reset_swwhh4')
archive_file($get_path,$put_path,'reset_blew')
archive_file($get_path,$put_path,'reset_br24')
archive_file($get_path,$put_path,'reset_c7inadwdumbot2d')
archive_file($get_path,$put_path,'reset_c7inadwdumbogen2d')
archive_file($get_path,$put_path,'reset_c7inadwpmlg2d')
archive_file($get_path,$put_path,'reset_cp')
archive_file($get_path,$put_path,'reset_dumbo')
archive_file($get_path,$put_path,'reset_ineptyx')
archive_file($get_path,$put_path,'reset_masapt')
archive_file($get_path,$put_path,'reset_mashmqc')
archive_file($get_path,$put_path,'reset_mashsqc')
archive_file($get_path,$put_path,'reset_mrev8')
archive_file($get_path,$put_path,'reset_pmlg')
archive_file($get_path,$put_path,'reset_pto1HX')
archive_file($get_path,$put_path,'reset_pto2HX')
archive_file($get_path,$put_path,'reset_pto3HX')
archive_file($get_path,$put_path,'reset_r18')
archive_file($get_path,$put_path,'reset_r2inv1d')
archive_file($get_path,$put_path,'reset_spc5')
archive_file($get_path,$put_path,'reset_wdumbo1d')
archive_file($get_path,$put_path,'reset_wdumbot1d')
archive_file($get_path,$put_path,'reset_r12')
archive_file($get_path,$put_path,'reset_wisetancp2d')
archive_file($get_path,$put_path,'reset_sr4')
archive_file($get_path,$put_path,'reset_sr4dipshft')
archive_file($get_path,$put_path,'reset_r12dipshft')
archive_file($get_path,$put_path,'reset_mqmas')
archive_file($get_path,$put_path,'reset_sammy')
archive_file($get_path,$put_path,'reset_rocsa2d')
archive_file($get_path,$put_path,'reset_sc14')
archive_file($get_path,$put_path,'reset_fprfdr')
archive_file($get_path,$put_path,'reset_ptrfdr')
archive_file($get_path,$put_path,'reset_r1817')
archive_file($get_path,$put_path,'reset_tm5')
archive_file($get_path,$put_path,'reset_hssmall')
archive_file($get_path,$put_path,'reset_hetcorlgcp2d_1')
archive_file($get_path,$put_path,'reset_hetcorsamlgcp2d_1')
archive_file($get_path,$put_path,'reset_wsam1d')
archive_file($get_path,$put_path,'reset_wpmlgxmx1d')
archive_file($get_path,$put_path,'reset_wdumboxmx1d')
archive_file($get_path,$put_path,'reset_wdumbogen1d')
archive_file($get_path,$put_path,'reset_edcfX')
archive_file($get_path,$put_path,'reset_dcfX')
archive_file($get_path,$put_path,'reset_edcf1X')
archive_file($get_path,$put_path,'reset_dcf1X')
archive_file($get_path,$put_path,'reset_super2d')
archive_file($get_path,$put_path,'reset_hetcorpmlgcp2d_1')
archive_file($get_path,$put_path,'reset_hetcordumbolgcp2d_1')
archive_file($get_path,$put_path,'reset_lgcp')
archive_file($get_path,$put_path,'reset_wiselgcp2d')
archive_file($get_path,$put_path,'reset_ahXH')
archive_file($get_path,$put_path,'reset_ahYXH')
archive_file($get_path,$put_path,'reset_wpmlgxmx1d1')
//archive_file($get_path,$put_path,'reset_ahX')
//archive_file($get_path,$put_path,'reset_ahXX')
//archive_file($get_path,$put_path,'reset_ahYXX')
//archive_file($get_path,$put_path,'reset_ahYX')
//archive_file($get_path,$put_path,'reset_ahXYX')

"Macros That Run Protocols"

archive_file($get_path,$put_path,'Settancpx')
archive_file($get_path,$put_path,'Tancpx')
archive_file($get_path,$put_path,'Onepul')
archive_file($get_path,$put_path,'Twopul')
archive_file($get_path,$put_path,'Tancpxt1rho')
archive_file($get_path,$put_path,'Tancpxflip')
archive_file($get_path,$put_path,'C7inad2d')
archive_file($get_path,$put_path,'Pisema2d')
archive_file($get_path,$put_path,'Hetcorlgcp2d')
archive_file($get_path,$put_path,'Wisetancp2d')
archive_file($get_path,$put_path,'Exsy2d')
archive_file($get_path,$put_path,'Br24q')
archive_file($get_path,$put_path,'Mrev8q')
archive_file($get_path,$put_path,'Swwhh4')
archive_file($get_path,$put_path,'Lgcp')
archive_file($get_path,$put_path,'Tancpxidref')
archive_file($get_path,$put_path,'Tancpxtoss')
archive_file($get_path,$put_path,'Onepultoss')
archive_file($get_path,$put_path,'Tunerp')
archive_file($get_path,$put_path,'Ssecho1d')
archive_file($get_path,$put_path,'Tancpht1')
archive_file($get_path,$put_path,'Tancpxfslg')
archive_file($get_path,$put_path,'Tancpxecho')
archive_file($get_path,$put_path,'Mqmas3qzf2d')
archive_file($get_path,$put_path,'Mqmas5qzf2d')
archive_file($get_path,$put_path,'Redor1tancp')
archive_file($get_path,$put_path,'Redor1onepul')
archive_file($get_path,$put_path,'Redor2tancp')
archive_file($get_path,$put_path,'Redor2onepul')
archive_file($get_path,$put_path,'Xx')
archive_file($get_path,$put_path,'Xmx')
archive_file($get_path,$put_path,'Wpmlg1d')
archive_file($get_path,$put_path,'Wpmlg2d')
archive_file($get_path,$put_path,'Stmas2d')
archive_file($get_path,$put_path,'Stmasspltse2d2')
archive_file($get_path,$put_path,'Stmasdqfspltse2d')
archive_file($get_path,$put_path,'Stmasdqfse2d')
archive_file($get_path,$put_path,'Stmasse2d1')
archive_file($get_path,$put_path,'Stmasse2d2')
archive_file($get_path,$put_path,'Stmasspltse2d1')
archive_file($get_path,$put_path,'Stmaszf2d')

archive_file($get_path,$put_path,'Dcptan')
archive_file($get_path,$put_path,'Dcptan3drad')
archive_file($get_path,$put_path,'Dcp2tan3drad')
archive_file($get_path,$put_path,'R14inad2d')
archive_file($get_path,$put_path,'Spc5inad2d')
archive_file($get_path,$put_path,'Babainad2d')
archive_file($get_path,$put_path,'Fsredor')
archive_file($get_path,$put_path,'Hetcortancp2d')
archive_file($get_path,$put_path,'Br24')
archive_file($get_path,$put_path,'Mrev8')
archive_file($get_path,$put_path,'Dcptan3dspc5')
archive_file($get_path,$put_path,'Tancp2drad')
archive_file($get_path,$put_path,'Tancp2dspc5')
archive_file($get_path,$put_path,'Mashmqc2d')
archive_file($get_path,$put_path,'Masapt1d')
archive_file($get_path,$put_path,'Cpinad2d')
archive_file($get_path,$put_path,'Mqmas7qzf2d')
archive_file($get_path,$put_path,'Mqmas9qzf2d')
archive_file($get_path,$put_path,'Mashsqc2d')
archive_file($get_path,$put_path,'R2inv1d')
archive_file($get_path,$put_path,'Tancpxpmlg')
archive_file($get_path,$put_path,'Tancpxblew')
archive_file($get_path,$put_path,'Tancpxdumbo')
archive_file($get_path,$put_path,'Decorcptan2d')
archive_file($get_path,$put_path,'Presto1cp')
archive_file($get_path,$put_path,'Presto2cp')
archive_file($get_path,$put_path,'Presto3cp')
archive_file($get_path,$put_path,'Onepuldfs')
archive_file($get_path,$put_path,'C7inadwpmlg2d')
archive_file($get_path,$put_path,'Wdumbo1d')
archive_file($get_path,$put_path,'Wdumbot1d')
archive_file($get_path,$put_path,'C7inadwdumbot2d')
archive_file($get_path,$put_path,'C7inadwdumbogen2d')
archive_file($get_path,$put_path,'Mqmas3qdfsspltse2d')
archive_file($get_path,$put_path,'Mqmas3qspltse2d')
archive_file($get_path,$put_path,'Mqmas3qse2d')
archive_file($get_path,$put_path,'Ineptxyonepul')
archive_file($get_path,$put_path,'Ineptxytancp')
archive_file($get_path,$put_path,'Ineptxyrefonepul')
archive_file($get_path,$put_path,'Ineptxyreftancp')
archive_file($get_path,$put_path,'Onepuldpth')
archive_file($get_path,$put_path,'Phtran')
archive_file($get_path,$put_path,'Mqmas3q2d')
archive_file($get_path,$put_path,'Mqmas3qdfs2d')
archive_file($get_path,$put_path,'Mqmas3qdfszf2d')
archive_file($get_path,$put_path,'Dipshftr12dfs')
archive_file($get_path,$put_path,'Repdfs')
archive_file($get_path,$put_path,'Mqmas3qfamspltse2d')
archive_file($get_path,$put_path,'Mqmas3qfam2spltse2d')
archive_file($get_path,$put_path,'Qcpmg1d')
archive_file($get_path,$put_path,'Tancpechocpmg1d')
archive_file($get_path,$put_path,'Dipshftsr4dfs')
archive_file($get_path,$put_path,'Mqmas3qdfs2spltse2d')
archive_file($get_path,$put_path,'Onepulmdfs')
archive_file($get_path,$put_path,'Pboxonepul')
archive_file($get_path,$put_path,'Pisematest1')
archive_file($get_path,$put_path,'Pisematest2')
archive_file($get_path,$put_path,'Sammy2d')
archive_file($get_path,$put_path,'Cpcpmg1d')
archive_file($get_path,$put_path,'Lgcp2d')
archive_file($get_path,$put_path,'Rocsa2d')
archive_file($get_path,$put_path,'Onepulxyr')
archive_file($get_path,$put_path,'Tancpxyr')
archive_file($get_path,$put_path,'Hetcorlgcp2d_1')
archive_file($get_path,$put_path,'Hetcorlgcp2dxyr')
archive_file($get_path,$put_path,'Trapdorycpx')
archive_file($get_path,$put_path,'Trapdor1d')
archive_file($get_path,$put_path,'Sc14inad2d')
archive_file($get_path,$put_path,'Seac71d')
archive_file($get_path,$put_path,'Tancp1dfprfdr')
archive_file($get_path,$put_path,'Tancp1dptrfdr')
archive_file($get_path,$put_path,'Tancpxpips')
archive_file($get_path,$put_path,'Babadpinad2d')
archive_file($get_path,$put_path,'Hahnecho1d')
archive_file($get_path,$put_path,'Tancpxhahnecho')
archive_file($get_path,$put_path,'Tancpxs')
archive_file($get_path,$put_path,'Onepuls')
archive_file($get_path,$put_path,'Tancpxrefs')
archive_file($get_path,$put_path,'R2inv1ds')
archive_file($get_path,$put_path,'Hxr1817ct2ds')
archive_file($get_path,$put_path,'Hxtm5ct2ds')
archive_file($get_path,$put_path,'Hxidmissct2ds')
archive_file($get_path,$put_path,'Xxctuc2ds')
archive_file($get_path,$put_path,'Nccdqm3ds')
archive_file($get_path,$put_path,'Cncc4ds')
archive_file($get_path,$put_path,'Xxctuc1sh2ds')
archive_file($get_path,$put_path,'Tancpht1rho')
archive_file($get_path,$put_path,'Onepult1rho')
archive_file($get_path,$put_path,'Hssmall')
archive_file($get_path,$put_path,'Tancpxtoss5')
archive_file($get_path,$put_path,'Onepulsfs')
archive_file($get_path,$put_path,'Lgfmcp1d')
archive_file($get_path,$put_path,'Shapedtwopul1d')
archive_file($get_path,$put_path,'Onepulhs')
archive_file($get_path,$put_path,'Hetcorsamlgcp2d_1')
archive_file($get_path,$put_path,'Tancpxdec2')
archive_file($get_path,$put_path,'Onepuldec2')
archive_file($get_path,$put_path,'Wsam1d')
archive_file($get_path,$put_path,'Wpmlgxmx1d')
archive_file($get_path,$put_path,'Wdumboxmx1d')
archive_file($get_path,$put_path,'Wdumbogen1d')
archive_file($get_path,$put_path,'Super2d')
archive_file($get_path,$put_path,'Hetcorpmlgcp2d_1')
archive_file($get_path,$put_path,'Hetcordumbolgcp2d_1')
archive_file($get_path,$put_path,'Tancpxedit')
archive_file($get_path,$put_path,'Moistlkcp')
archive_file($get_path,$put_path,'Sammymstlk2d')
archive_file($get_path,$put_path,'Satrec1d')
archive_file($get_path,$put_path,'Tancpxt1')
archive_file($get_path,$put_path,'Onepulhspl')
archive_file($get_path,$put_path,'Codex1d')
archive_file($get_path,$put_path,'Tancpxref')
archive_file($get_path,$put_path,'Jmasnca2d')
archive_file($get_path,$put_path,'Jmasnco2d')
archive_file($get_path,$put_path,'Wiselgcp2d')
archive_file($get_path,$put_path,'Jmascaco2d')
archive_file($get_path,$put_path,'Jmascacosh2d')
archive_file($get_path,$put_path,'Hahnechodfs1d')
archive_file($get_path,$put_path,'Grad_rec')
archive_file($get_path,$put_path,'Grad_profile')
archive_file($get_path,$put_path,'AhXH')
archive_file($get_path,$put_path,'AhYXH')
archive_file($get_path,$put_path,'Spsmall')
archive_file($get_path,$put_path,'Jmascacoipap2d')
archive_file($get_path,$put_path,'Rotorsynctest')
archive_file($get_path,$put_path,'Onepulcpm')
archive_file($get_path,$put_path,'Tancpxcpm')
archive_file($get_path,$put_path,'Phasetest')
archive_file($get_path,$put_path,'Wpmlgxmx1d1')
archive_file($get_path,$put_path,'Onepulref')
archive_file($get_path,$put_path,'Qcpmgsh1d')
//archive_file($get_path,$put_path,'AhX')
//archive_file($get_path,$put_path,'AhXX')
//archive_file($get_path,$put_path,'AhYXX')
//archive_file($get_path,$put_path,'AhYX')
//archive_file($get_path,$put_path,'AhXYX')

"Apptype Macros"

archive_file($get_path,$put_path,'solidsseq1d')
archive_file($get_path,$put_path,'solids1d')
archive_file($get_path,$put_path,'fixtancpxpars')
archive_file($get_path,$put_path,'par2d')  "needed for vnmrj3.1 and later"

"Macros that Initialize the Walkup interface"

archive_file($get_path,$put_path,'cqreset')  "shuts down gradient shim   needed for 2.1B only"
archive_file($get_path,$put_path,'xmprescan') "shuts down Autolock       needed for 2.1B only"
archive_file($get_path,$put_path,'cqreset21b')  
archive_file($get_path,$put_path,'xmprescan21b') 

"Macros that Set the Probe File

archive_file($get_path,$put_path,'setsolidsprobedatarecxy')
archive_file($get_path,$put_path,'getsolidsprobedatarecxy')
archive_file($get_path,$put_path,'setsolidsprobedatahid')
archive_file($get_path,$put_path,'getsolidsprobedatahid')
archive_file($get_path,$put_path,'setsolidsprobedata')
archive_file($get_path,$put_path,'getsolidsprobedata')

"Macros for MQMAS Processing"

archive_file($get_path,$put_path,'mqf1ref3q')
archive_file($get_path,$put_path,'mqf1ref3qs')
archive_file($get_path,$put_path,'mqf1ref3qsp')
archive_file($get_path,$put_path,'mqf1ref5q')
archive_file($get_path,$put_path,'mqf1ref5qs')
archive_file($get_path,$put_path,'mqf1ref5qsp')
archive_file($get_path,$put_path,'mqf1ref7q')
archive_file($get_path,$put_path,'mqf1ref7qs')
archive_file($get_path,$put_path,'mqf1ref7qsp')
archive_file($get_path,$put_path,'mqf1ref9q')
archive_file($get_path,$put_path,'mqf1ref9qs')
archive_file($get_path,$put_path,'mqf1ref9qsp')
archive_file($get_path,$put_path,'mqf1shear')
archive_file($get_path,$put_path,'mqf1shear5')
archive_file($get_path,$put_path,'mqf1shear7')
archive_file($get_path,$put_path,'mqf1shear9')

"Macros for STMAS Processing"

archive_file($get_path,$put_path,'stf1ref')

"Macros for REDOR Processing"

archive_file($get_path,$put_path,'redoranal1')
archive_file($get_path,$put_path,'redoranal2')

"Macros for HS90 Processing"

archive_file($get_path,$put_path,'hssmallanal2')
archive_file($get_path,$put_path,'hssmallanal')
archive_file($get_path,$put_path,'hs90anal')
archive_file($get_path,$put_path,'spsmallanal')

"Macros for Multifid Experiments"

archive_file($get_path,$put_path,'mfsum')
archive_file($get_path,$put_path,'mfshow')
archive_file($get_path,$put_path,'mfarray')
archive_file($get_path,$put_path,'rtdata')

"Macros for Sequence Development" 

archive_file($get_path,$put_path,'archive_file')
archive_file($get_path,$put_path,'archive_SEQUENCE')
archive_file($get_path,$put_path,'narchive_SEQUENCE')
archive_file($get_path,$put_path,'archive_SUNSEQUENCE')
archive_file($get_path,$put_path,'archive_VNMRSSOLIDSDOCS2')
archive_file($get_path,$put_path,'clearallparams')
archive_file($get_path,$put_path,'clearnewparams')
archive_file($get_path,$put_path,'setnewparams')
archive_file($get_path,$put_path,'shownewparams')
archive_file($get_path,$put_path,'copypseq')
archive_file($get_path,$put_path,'capitalizestring')
archive_file($get_path,$put_path,'createparam')
archive_file($get_path,$put_path,'paramgroup')
archive_file($get_path,$put_path,'macroupdatepars')
archive_file($get_path,$put_path,'solidsetup')
archive_file($get_path,$put_path,'closesolidsetup')
archive_file($get_path,$put_path,'setupupdatepars')
archive_file($get_path,$put_path,'updatetext')
archive_file($get_path,$put_path,'updateprocpars')
archive_file($get_path,$put_path,'vtos')
archive_file($get_path,$put_path,'stov')
archive_file($get_path,$put_path,'make_README')
archive_file($get_path,$put_path,'make_all_README')
archive_file($get_path,$put_path,'replacetext')
archive_file($get_path,$put_path,'settabs')
archive_file($get_path,$put_path,'set_all_tabs')
archive_file($get_path,$put_path,'probeparamgroup')

"Macros for the Tool Bar

archive_file($get_path,$put_path,'copyexp')

"Items for Simplexer and Shimdriver"

archive_file($get_path,$put_path,'simplexer')
archive_file($get_path,$put_path,'SIMPLEXER')
archive_file($get_path,$put_path,'shimDriver')
archive_file($get_path,$put_path,'Simplexer')
archive_file($get_path,$put_path,'shimdriver')
archive_file($get_path,$put_path,'initSimplex.tcl')
archive_file($get_path,$put_path,'killFile')
archive_file($get_path,$put_path,'pokeFOM')
archive_file($get_path,$put_path,'setMacroState')
archive_file($get_path,$put_path,'simplexOptions.tcl')
archive_file($get_path,$put_path,'asSetUp')
archive_file($get_path,$put_path,'buildQueue.tcl')
archive_file($get_path,$put_path,'buildQueue')
archive_file($get_path,$put_path,'buildqueue')
archive_file($get_path,$put_path,'initQueue.tcl')
archive_file($get_path,$put_path,'testQueue.tcl')
archive_file($get_path,$put_path,'genTempCommun')

"AutoCalibration Archiving"

archive_file($get_path,$put_path,'archive_SSAUTOCAL')

"SS Autocalibration TANCPX and TANCPXFLIP" 

archive_file($get_path,$put_path,'SS_AutoCal_CP')
archive_file($get_path,$put_path,'SS_1_CP')
archive_file($get_path,$put_path,'SS_2_CP')
archive_file($get_path,$put_path,'SS_3_CP')
archive_file($get_path,$put_path,'SS_4_CP')

"SS Autocalibration TANCPX for Ca,CO and ai" 

archive_file($get_path,$put_path,'SS_AutoCal_CP1')
archive_file($get_path,$put_path,'SS_1_CP1')
archive_file($get_path,$put_path,'SS_2_CP1')

"SS Autocalibration ONEPUL and CP"

archive_file($get_path,$put_path,'SS_AutoCal_DP')
archive_file($get_path,$put_path,'SS_1_DP')
archive_file($get_path,$put_path,'SS_2_DP')
archive_file($get_path,$put_path,'SS_3_DP')
archive_file($get_path,$put_path,'SS_4_DP')

"SS Autocalibration DCPTAN for Ca and CO"

archive_file($get_path,$put_path,'SS_AutoCal_DCP')
archive_file($get_path,$put_path,'SS_1_DCP')
archive_file($get_path,$put_path,'SS_2_DCP')
archive_file($get_path,$put_path,'SS_3_DCP')

"Fitting of Nutation Curves for Autocalibration"

archive_file($get_path,$put_path,'SS_AutoCal_minmaxfit')

"Phasing Arrays For Autocalibration "

archive_file($get_path,$put_path,'SS_AutoCal_aph0')
archive_file($get_path,$put_path,'SS_AutoCal_maxamp')

"Probe Template File for AutoCalibration" 

archive_file($get_path,$put_path,'SS_AutoCal_probe.template')
archive_file($get_path,$put_path,'SS_setsolids_DP')
archive_file($get_path,$put_path,'SS_getsolids_DP')
archive_file($get_path,$put_path,'SS_setsolids_CP')
archive_file($get_path,$put_path,'SS_getsolids_CP')
archive_file($get_path,$put_path,'SS_setzero_CP')
archive_file($get_path,$put_path,'SS_installprobe_ALL')
archive_file($get_path,$put_path,'SS_saveAutoTripRes_ALL')

"BioPack macros Directly used for Autocalibration"

archive_file($get_path,$put_path,'BPgetdate')
archive_file($get_path,$put_path,'BPpage')
archive_file($get_path,$put_path,'BPsvf')
archive_file($get_path,$put_path,'BPsetparams')

"BioPack Setup macros used for BPpresent='y'" 

archive_file($get_path,$put_path,'tancpx_HC')
archive_file($get_path,$put_path,'tancpx_HN')
archive_file($get_path,$put_path,'onepul_HC')
archive_file($get_path,$put_path,'onepul_HN')
archive_file($get_path,$put_path,'onepulH1_HC')
archive_file($get_path,$put_path,'onepulH1_HN')
archive_file($get_path,$put_path,'tancpx_Ca')
archive_file($get_path,$put_path,'tancpx_CO')
archive_file($get_path,$put_path,'tancpx_Nai')
archive_file($get_path,$put_path,'tancpx_Nam')
archive_file($get_path,$put_path,'tancpxt1rho_Ca')
archive_file($get_path,$put_path,'tancpxt1rho_CO')
archive_file($get_path,$put_path,'tancpxt1rho_Nai')
archive_file($get_path,$put_path,'dcptan_HNC')
archive_file($get_path,$put_path,'dcptan_HNCa')
archive_file($get_path,$put_path,'dcptan_HNCO')

"BioPack macros used for Autocalibration for BPpresent='y'"

archive_file($get_path,$put_path,'BPrtppar')
archive_file($get_path,$put_path,'BPgetpars')
archive_file($get_path,$put_path,'BPfixup')
archive_file($get_path,$put_path,'BP_SS_update_from_probefile')
archive_file($get_path,$put_path,'BPcheckprobefile')
archive_file($get_path,$put_path,'BP_SS_getsrate')

"Macros for Global Power Protection"

archive_file($get_path,$put_path,'parpps')
archive_file($get_path,$put_path,'delpps')

"******** Create MACLIB BACKUP (lowercase)********"

$get_path = $input_path + '/maclib'
$put_path = $output_path +'/maclib_lowercase'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'tancpx')
archive_file($get_path,$put_path,'onepul')
archive_file($get_path,$put_path,'twopul')
archive_file($get_path,$put_path,'tancpxt1rho')
archive_file($get_path,$put_path,'tancpxflip')
archive_file($get_path,$put_path,'c7inad2d')
archive_file($get_path,$put_path,'pisema2d')
archive_file($get_path,$put_path,'hetcorlgcp2d')
archive_file($get_path,$put_path,'wisetancp2d')
archive_file($get_path,$put_path,'exsy2d')
archive_file($get_path,$put_path,'br24q')
archive_file($get_path,$put_path,'mrev8q')
archive_file($get_path,$put_path,'swwhh4')
archive_file($get_path,$put_path,'lgcp')
archive_file($get_path,$put_path,'tancpxidref')
archive_file($get_path,$put_path,'tancpxtoss')
archive_file($get_path,$put_path,'onepultoss')
archive_file($get_path,$put_path,'tunerp')
archive_file($get_path,$put_path,'ssecho1d')
archive_file($get_path,$put_path,'tancpht1')
archive_file($get_path,$put_path,'tancpxfslg')
archive_file($get_path,$put_path,'tancpxecho')
archive_file($get_path,$put_path,'mqmas3qzf2d')
archive_file($get_path,$put_path,'mqmas5qzf2d')
archive_file($get_path,$put_path,'redor1tancp')
archive_file($get_path,$put_path,'redor1onepul')
archive_file($get_path,$put_path,'redor2onepul')
archive_file($get_path,$put_path,'redor2tancp')
archive_file($get_path,$put_path,'xx')
archive_file($get_path,$put_path,'xmx')
archive_file($get_path,$put_path,'wpmlg1d')
archive_file($get_path,$put_path,'wpmlg2d')
archive_file($get_path,$put_path,'stmas2d')
archive_file($get_path,$put_path,'stmasspltse2d2')
archive_file($get_path,$put_path,'stmasdqfspltse2d')
archive_file($get_path,$put_path,'stmasdqfse2d')
archive_file($get_path,$put_path,'stmasse2d1')
archive_file($get_path,$put_path,'stmasse2d2')
archive_file($get_path,$put_path,'stmasspltse2d1')
archive_file($get_path,$put_path,'stmaszf2d')

archive_file($get_path,$put_path,'dcptan')
archive_file($get_path,$put_path,'dcptan3drad')
archive_file($get_path,$put_path,'dcp2tan3drad')
archive_file($get_path,$put_path,'r14inad2d')
archive_file($get_path,$put_path,'spc5inad2d')
archive_file($get_path,$put_path,'babainad2d')
archive_file($get_path,$put_path,'fsredor')
archive_file($get_path,$put_path,'hetcortancp2d')
archive_file($get_path,$put_path,'br24')
archive_file($get_path,$put_path,'mrev8')
archive_file($get_path,$put_path,'dcptan3dspc5')
archive_file($get_path,$put_path,'tancp2drad')
archive_file($get_path,$put_path,'tancp2dspc5')
archive_file($get_path,$put_path,'mashmqc2d')
archive_file($get_path,$put_path,'masapt1d')
archive_file($get_path,$put_path,'cpinad2d')
archive_file($get_path,$put_path,'mqmas7qzf2d')
archive_file($get_path,$put_path,'mqmas9qzf2d')
archive_file($get_path,$put_path,'mashsqc2d')
archive_file($get_path,$put_path,'r2inv1d')
archive_file($get_path,$put_path,'tancpxpmlg')
archive_file($get_path,$put_path,'tancpxblew')
archive_file($get_path,$put_path,'tancpxdumbo')
archive_file($get_path,$put_path,'decorcptan2d')
archive_file($get_path,$put_path,'presto1cp')
archive_file($get_path,$put_path,'presto2cp')
archive_file($get_path,$put_path,'presto3cp')
archive_file($get_path,$put_path,'onepuldfs')
archive_file($get_path,$put_path,'c7inadwpmlg2d')
archive_file($get_path,$put_path,'wdumbo1d')
archive_file($get_path,$put_path,'wdumbot1d')
archive_file($get_path,$put_path,'c7inadwdumbot2d')
archive_file($get_path,$put_path,'c7inadwdumbogen2d')
archive_file($get_path,$put_path,'mqmas3qdfsspltse2d')
archive_file($get_path,$put_path,'mqmas3qspltse2d')
archive_file($get_path,$put_path,'mqmas3qse2d')
archive_file($get_path,$put_path,'ineptxyonepul')
archive_file($get_path,$put_path,'ineptxytancp')
archive_file($get_path,$put_path,'ineptxyrefonepul')
archive_file($get_path,$put_path,'ineptxyreftancp')
archive_file($get_path,$put_path,'onepuldpth')
archive_file($get_path,$put_path,'phtran')
archive_file($get_path,$put_path,'mqmas3q2d')
archive_file($get_path,$put_path,'mqmas3qdfs2d')
archive_file($get_path,$put_path,'mqmas3qdfszf2d')
archive_file($get_path,$put_path,'dipshftr12dfs')
archive_file($get_path,$put_path,'repdfs')
archive_file($get_path,$put_path,'mqmas3qfamspltse2d')
archive_file($get_path,$put_path,'mqmas3qfam2spltse2d')
archive_file($get_path,$put_path,'qcpmg1d')
archive_file($get_path,$put_path,'tancpechocpmg1d')
archive_file($get_path,$put_path,'dipshftsr4dfs')
archive_file($get_path,$put_path,'mqmas3qdfs2spltse2d')
archive_file($get_path,$put_path,'onepulmdfs')
archive_file($get_path,$put_path,'pboxonepul')
archive_file($get_path,$put_path,'pisematest1')
archive_file($get_path,$put_path,'pisematest2')
archive_file($get_path,$put_path,'sammy2d')
archive_file($get_path,$put_path,'cpcpmg1d')
archive_file($get_path,$put_path,'rocsa2d')
archive_file($get_path,$put_path,'lgcp2d')
archive_file($get_path,$put_path,'onepulxyr')
archive_file($get_path,$put_path,'tancpxyr')
archive_file($get_path,$put_path,'hetcorlgcp2d_1')
archive_file($get_path,$put_path,'hetcorlgcp2dxyr')
archive_file($get_path,$put_path,'trapdorycpx')
archive_file($get_path,$put_path,'trapdor1d')
archive_file($get_path,$put_path,'sc14inad2d')
archive_file($get_path,$put_path,'seac71d')
archive_file($get_path,$put_path,'tancp1dfprfdr')
archive_file($get_path,$put_path,'tancp1dptrfdr')
archive_file($get_path,$put_path,'tancpxpips')
archive_file($get_path,$put_path,'babadpinad2d')
archive_file($get_path,$put_path,'hahnecho1d')
archive_file($get_path,$put_path,'tancpxhahnecho')
archive_file($get_path,$put_path,'tancpxs')
archive_file($get_path,$put_path,'onepuls')
archive_file($get_path,$put_path,'tancpxrefs')
archive_file($get_path,$put_path,'r2inv1ds')
archive_file($get_path,$put_path,'hxr1817ct2ds')
archive_file($get_path,$put_path,'hxtm5ct2ds')
archive_file($get_path,$put_path,'hxidmissct2ds')
archive_file($get_path,$put_path,'xxctuc2ds')
archive_file($get_path,$put_path,'nccdqm3ds')
archive_file($get_path,$put_path,'cncc4ds')
archive_file($get_path,$put_path,'xxctuc1sh2ds')
archive_file($get_path,$put_path,'tancpht1rho')
archive_file($get_path,$put_path,'onepult1rho')
archive_file($get_path,$put_path,'hssmall')
archive_file($get_path,$put_path,'tancpxtoss5')
archive_file($get_path,$put_path,'onepulsfs')
archive_file($get_path,$put_path,'lgfmcp1d')
archive_file($get_path,$put_path,'shapedtwopul1d')
archive_file($get_path,$put_path,'onepulhs')
archive_file($get_path,$put_path,'hetcorsamlgcp2d_1')
archive_file($get_path,$put_path,'tancpxdec2')
archive_file($get_path,$put_path,'onepuldec2')
archive_file($get_path,$put_path,'wsam1d')
archive_file($get_path,$put_path,'wpmlgxmx1d')
archive_file($get_path,$put_path,'wdumboxmx1d')
archive_file($get_path,$put_path,'wdumbogen1d')
archive_file($get_path,$put_path,'super2d')
archive_file($get_path,$put_path,'hetcorpmlgcp2d_1')
archive_file($get_path,$put_path,'hetcordumbolgcp2d_1')
archive_file($get_path,$put_path,'tancpxedit')
archive_file($get_path,$put_path,'moistlkcp')
archive_file($get_path,$put_path,'sammymstlk2d')
archive_file($get_path,$put_path,'satrec1d')
archive_file($get_path,$put_path,'tancpxt1')
archive_file($get_path,$put_path,'onepulhspl')
archive_file($get_path,$put_path,'codex1d')
archive_file($get_path,$put_path,'tancpxref')
archive_file($get_path,$put_path,'jmasnca2d')
archive_file($get_path,$put_path,'jmasnco2d')
archive_file($get_path,$put_path,'wiselgcp2d')
archive_file($get_path,$put_path,'jmascaco2d')
archive_file($get_path,$put_path,'jmascacosh2d')
archive_file($get_path,$put_path,'hahnechodfs1d')
archive_file($get_path,$put_path,'grad_rec')
archive_file($get_path,$put_path,'grad_profile')
archive_file($get_path,$put_path,'ahXH')
archive_file($get_path,$put_path,'ahYXH')
archive_file($get_path,$put_path,'spsmall')
archive_file($get_path,$put_path,'jmascacoipap2d')
archive_file($get_path,$put_path,'rotorsynctest')
archive_file($get_path,$put_path,'onepulcpm')
archive_file($get_path,$put_path,'tancpxcpm')
archive_file($get_path,$put_path,'phasetest')
archive_file($get_path,$put_path,'wpmlgxmx1d1')
archive_file($get_path,$put_path,'onepulref')
archive_file($get_path,$put_path,'qcpmgsh1d')
//archive_file($get_path,$put_path,'ahX')
//archive_file($get_path,$put_path,'ahXX')
//archive_file($get_path,$put_path,'ahYXX')
//archive_file($get_path,$put_path,'ahYX')
//archive_file($get_path,$put_path,'ahXYX')


archive_file($get_path,$put_path,'Simplexer')
archive_file($get_path,$put_path,'shimdriver')

"******** Create MACLIB BACKUP (uppercase)********"

$get_path = $input_path + '/maclib'
$put_path = $output_path +'/maclib_uppercase'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'Settancpx')
archive_file($get_path,$put_path,'Tancpx')
archive_file($get_path,$put_path,'Onepul')
archive_file($get_path,$put_path,'Twopul')
archive_file($get_path,$put_path,'Tancpxt1rho')
archive_file($get_path,$put_path,'Tancpxflip')
archive_file($get_path,$put_path,'C7inad2d')
archive_file($get_path,$put_path,'Pisema2d')
archive_file($get_path,$put_path,'Hetcorlgcp2d')
archive_file($get_path,$put_path,'Wisetancp2d')
archive_file($get_path,$put_path,'Exsy2d')
archive_file($get_path,$put_path,'Br24q')
archive_file($get_path,$put_path,'Mrev8q')
archive_file($get_path,$put_path,'Swwhh4')
archive_file($get_path,$put_path,'Lgcp')
archive_file($get_path,$put_path,'Tancpxidref')
archive_file($get_path,$put_path,'Tancpxtoss')
archive_file($get_path,$put_path,'Onepultoss')
archive_file($get_path,$put_path,'Tunerp')
archive_file($get_path,$put_path,'Ssecho1d')
archive_file($get_path,$put_path,'Tancpht1')
archive_file($get_path,$put_path,'Tancpxfslg')
archive_file($get_path,$put_path,'Tancpxecho')
archive_file($get_path,$put_path,'Mqmas3qzf2d')
archive_file($get_path,$put_path,'Mqmas5qzf2d')
archive_file($get_path,$put_path,'Redor1tancp')
archive_file($get_path,$put_path,'Redor1onepul')
archive_file($get_path,$put_path,'Redor2tancp')
archive_file($get_path,$put_path,'Redor2onepul')
archive_file($get_path,$put_path,'Xx')
archive_file($get_path,$put_path,'Xmx')
archive_file($get_path,$put_path,'Wpmlg1d')
archive_file($get_path,$put_path,'Wpmlg2d')
archive_file($get_path,$put_path,'Stmas2d')
archive_file($get_path,$put_path,'Stmasspltse2d2')
archive_file($get_path,$put_path,'Stmasdqfspltse2d')
archive_file($get_path,$put_path,'Stmasdqfse2d')
archive_file($get_path,$put_path,'Stmasse2d1')
archive_file($get_path,$put_path,'Stmasse2d2')
archive_file($get_path,$put_path,'Stmasspltse2d1')
archive_file($get_path,$put_path,'Stmaszf2d')

archive_file($get_path,$put_path,'Dcptan')
archive_file($get_path,$put_path,'Dcptan3drad')
archive_file($get_path,$put_path,'Dcp2tan3drad')
archive_file($get_path,$put_path,'R14inad2d')
archive_file($get_path,$put_path,'Spc5inad2d')
archive_file($get_path,$put_path,'Babainad2d')
archive_file($get_path,$put_path,'Fsredor')
archive_file($get_path,$put_path,'Hetcortancp2d')
archive_file($get_path,$put_path,'Br24')
archive_file($get_path,$put_path,'Mrev8')
archive_file($get_path,$put_path,'Dcptan3dspc5')
archive_file($get_path,$put_path,'Tancp2drad')
archive_file($get_path,$put_path,'Tancp2dspc5')
archive_file($get_path,$put_path,'Mashmqc2d')
archive_file($get_path,$put_path,'Masapt1d')
archive_file($get_path,$put_path,'Cpinad2d')
archive_file($get_path,$put_path,'Mqmas7qzf2d')
archive_file($get_path,$put_path,'Mqmas9qzf2d')
archive_file($get_path,$put_path,'Mashsqc2d')
archive_file($get_path,$put_path,'R2inv1d')
archive_file($get_path,$put_path,'Tancpxpmlg')
archive_file($get_path,$put_path,'Tancpxblew')
archive_file($get_path,$put_path,'Tancpxdumbo')
archive_file($get_path,$put_path,'Decorcptan2d')
archive_file($get_path,$put_path,'Presto1cp')
archive_file($get_path,$put_path,'Presto2cp')
archive_file($get_path,$put_path,'Presto3cp')
archive_file($get_path,$put_path,'Onepuldfs')
archive_file($get_path,$put_path,'C7inadwpmlg2d')
archive_file($get_path,$put_path,'Wdumbo1d')
archive_file($get_path,$put_path,'Wdumbot1d')
archive_file($get_path,$put_path,'C7inadwdumbot2d')
archive_file($get_path,$put_path,'C7inadwdumbogen2d')
archive_file($get_path,$put_path,'Mqmas3qdfsspltse2d')
archive_file($get_path,$put_path,'Mqmas3qspltse2d')
archive_file($get_path,$put_path,'Mqmas3qse2d')
archive_file($get_path,$put_path,'Ineptxyonepul')
archive_file($get_path,$put_path,'Ineptxytancp')
archive_file($get_path,$put_path,'Ineptxyrefonepul')
archive_file($get_path,$put_path,'Ineptxyreftancp')
archive_file($get_path,$put_path,'Onepuldpth')
archive_file($get_path,$put_path,'Phtran')
archive_file($get_path,$put_path,'Mqmas3q2d')
archive_file($get_path,$put_path,'Mqmas3qdfs2d')
archive_file($get_path,$put_path,'Mqmas3qdfszf2d')
archive_file($get_path,$put_path,'Dipshftr12dfs')
archive_file($get_path,$put_path,'Repdfs')
archive_file($get_path,$put_path,'Mqmas3qfamspltse2d')
archive_file($get_path,$put_path,'Mqmas3qfam2spltse2d')
archive_file($get_path,$put_path,'Qcpmg1d')
archive_file($get_path,$put_path,'Tancpechocpmg1d')
archive_file($get_path,$put_path,'Dipshftsr4dfs')
archive_file($get_path,$put_path,'Mqmas3qdfs2spltse2d')
archive_file($get_path,$put_path,'Onepulmdfs')
archive_file($get_path,$put_path,'Pboxonepul')
archive_file($get_path,$put_path,'Pisematest1')
archive_file($get_path,$put_path,'Pisematest2')
archive_file($get_path,$put_path,'Sammy2d')
archive_file($get_path,$put_path,'Cpcpmg1d')
archive_file($get_path,$put_path,'Lgcp2d')
archive_file($get_path,$put_path,'Rocsa2d')
archive_file($get_path,$put_path,'Onepulxyr')
archive_file($get_path,$put_path,'Tancpxyr')
archive_file($get_path,$put_path,'Hetcorlgcp2d_1')
archive_file($get_path,$put_path,'Hetcorlgcp2dxyr')
archive_file($get_path,$put_path,'Trapdorycpx')
archive_file($get_path,$put_path,'Trapdor1d')
archive_file($get_path,$put_path,'Sc14inad2d')
archive_file($get_path,$put_path,'Seac71d')
archive_file($get_path,$put_path,'Tancp1dfprfdr')
archive_file($get_path,$put_path,'Tancp1dptrfdr')
archive_file($get_path,$put_path,'Tancpxpips')
archive_file($get_path,$put_path,'Babadpinad2d')
archive_file($get_path,$put_path,'Hahnecho1d')
archive_file($get_path,$put_path,'Tancpxhahnecho')
archive_file($get_path,$put_path,'Tancpxs')
archive_file($get_path,$put_path,'Onepuls')
archive_file($get_path,$put_path,'Tancpxrefs')
archive_file($get_path,$put_path,'R2inv1ds')
archive_file($get_path,$put_path,'Hxr1817ct2ds')
archive_file($get_path,$put_path,'Hxtm5ct2ds')
archive_file($get_path,$put_path,'Hxidmissct2ds')
archive_file($get_path,$put_path,'Xxctuc2ds')
archive_file($get_path,$put_path,'Nccdqm3ds')
archive_file($get_path,$put_path,'Cncc4ds')
archive_file($get_path,$put_path,'Xxctuc1sh2ds')
archive_file($get_path,$put_path,'Tancpht1rho')
archive_file($get_path,$put_path,'Onepult1rho')
archive_file($get_path,$put_path,'Hssmall')
archive_file($get_path,$put_path,'Tancpxtoss5')
archive_file($get_path,$put_path,'Onepulsfs')
archive_file($get_path,$put_path,'Lgfmcp1d')
archive_file($get_path,$put_path,'Shapedtwopul1d')
archive_file($get_path,$put_path,'Onepulhs')
archive_file($get_path,$put_path,'Hetcorsamlgcp2d_1')
archive_file($get_path,$put_path,'Tancpxdec2')
archive_file($get_path,$put_path,'Onepuldec2')
archive_file($get_path,$put_path,'Wsam1d')
archive_file($get_path,$put_path,'Wpmlgxmx1d')
archive_file($get_path,$put_path,'Wdumboxmx1d')
archive_file($get_path,$put_path,'Wdumbogen1d')
archive_file($get_path,$put_path,'Super2d')
archive_file($get_path,$put_path,'Hetcorpmlgcp2d_1')
archive_file($get_path,$put_path,'Hetcordumbolgcp2d_1')
archive_file($get_path,$put_path,'Tancpxedit')
archive_file($get_path,$put_path,'Moistlkcp')
archive_file($get_path,$put_path,'Sammymstlk2d')
archive_file($get_path,$put_path,'Satrec1d')
archive_file($get_path,$put_path,'Tancpxt1')
archive_file($get_path,$put_path,'Onepulhspl')
archive_file($get_path,$put_path,'Codex1d')
archive_file($get_path,$put_path,'Tancpxref')
archive_file($get_path,$put_path,'Jmasnca2d')
archive_file($get_path,$put_path,'Jmasnco2d')
archive_file($get_path,$put_path,'Wiselgcp2d')
archive_file($get_path,$put_path,'Jmascaco2d')
archive_file($get_path,$put_path,'Jmascacosh2d')
archive_file($get_path,$put_path,'Hahnechodfs1d')
archive_file($get_path,$put_path,'Grad_rec')
archive_file($get_path,$put_path,'Grad_profile')
archive_file($get_path,$put_path,'AhXH')
archive_file($get_path,$put_path,'AhYXH')
archive_file($get_path,$put_path,'Spsmall')
archive_file($get_path,$put_path,'Jmascacoipap2d')
archive_file($get_path,$put_path,'Rotorsynctest')
archive_file($get_path,$put_path,'Onepulcpm')
archive_file($get_path,$put_path,'Tancpxcpm')
archive_file($get_path,$put_path,'Phasetest')
archive_file($get_path,$put_path,'Wpmlgxmx1d1')
archive_file($get_path,$put_path,'Onepulref')
archive_file($get_path,$put_path,'Qcpmgsh1d')
//archive_file($get_path,$put_path,'AhX')
//archive_file($get_path,$put_path,'AhXX')
//archive_file($get_path,$put_path,'AhYXX')
//archive_file($get_path,$put_path,'AhYX')
//archive_file($get_path,$put_path,'AhXYX')

archive_file($get_path,$put_path,'SIMPLEXER')
archive_file($get_path,$put_path,'shimDriver')

"******** Create README ********"

$get_path = $input_path + '/README'
$put_path = $output_path +'/README'
shell('mkdir ' + $put_path)

"README Files - needed for userlib submission of individual sequences"

archive_file($get_path,$put_path,'suninovasolids2.README')
archive_file($get_path,$put_path,'inovasolids2.README')
archive_file($get_path,$put_path,'solidspack.README')
archive_file($get_path,$put_path,'tancpx.README')
archive_file($get_path,$put_path,'onepul.README')
archive_file($get_path,$put_path,'twopul.README')
archive_file($get_path,$put_path,'tancpxt1rho.README')
archive_file($get_path,$put_path,'tancpxflip.README')
archive_file($get_path,$put_path,'c7inad2d.README')
archive_file($get_path,$put_path,'pisema2d.README')
archive_file($get_path,$put_path,'hetcorlgcp2d.README')
archive_file($get_path,$put_path,'wisetancp2d.README')
archive_file($get_path,$put_path,'exsy2d.README')
archive_file($get_path,$put_path,'br24q.README')
archive_file($get_path,$put_path,'mrev8q.README')
archive_file($get_path,$put_path,'swwhh4.README')
archive_file($get_path,$put_path,'lgcp.README')
archive_file($get_path,$put_path,'tancpxidref.README')
archive_file($get_path,$put_path,'tancpxtoss.README')
archive_file($get_path,$put_path,'onepultoss.README')
archive_file($get_path,$put_path,'tunerp.README')
archive_file($get_path,$put_path,'ssecho1d.README')
archive_file($get_path,$put_path,'tancpht1.README')
archive_file($get_path,$put_path,'tancpxfslg.README')
archive_file($get_path,$put_path,'tancpxecho.README')
archive_file($get_path,$put_path,'mqmas3qzf2d.README')
archive_file($get_path,$put_path,'mqmas5qzf2d.README')
archive_file($get_path,$put_path,'redor1tancp.README')
archive_file($get_path,$put_path,'redor1onepul.README')
archive_file($get_path,$put_path,'redor2onepul.README')
archive_file($get_path,$put_path,'redor2tancp.README')
archive_file($get_path,$put_path,'xx.README')
archive_file($get_path,$put_path,'xmx.README')
archive_file($get_path,$put_path,'wpmlg1d.README')
archive_file($get_path,$put_path,'wpmlg2d.README')
archive_file($get_path,$put_path,'stmas2d.README')
archive_file($get_path,$put_path,'stmasspltse2d2.README')
archive_file($get_path,$put_path,'stmasdqfspltse2d.README')
archive_file($get_path,$put_path,'stmasdqfse2d.README')
archive_file($get_path,$put_path,'stmasse2d1.README')
archive_file($get_path,$put_path,'stmasse2d2.README')
archive_file($get_path,$put_path,'stmasspltse2d1.README')
archive_file($get_path,$put_path,'stmaszf2d.README')

archive_file($get_path,$put_path,'dcptan.README')
archive_file($get_path,$put_path,'dcptan3drad.README')
archive_file($get_path,$put_path,'dcp2tan3drad.README')
archive_file($get_path,$put_path,'r14inad2d.README')
archive_file($get_path,$put_path,'spc5inad2d.README')
archive_file($get_path,$put_path,'babainad2d.README')
archive_file($get_path,$put_path,'fsredor.README')
archive_file($get_path,$put_path,'hetcortancp2d.README')
archive_file($get_path,$put_path,'br24.README')
archive_file($get_path,$put_path,'mrev8.README')
archive_file($get_path,$put_path,'dcptan3dspc5.README')
archive_file($get_path,$put_path,'tancp2drad.README')
archive_file($get_path,$put_path,'tancp2dspc5.README')
archive_file($get_path,$put_path,'mashmqc2d.README')
archive_file($get_path,$put_path,'masapt1d.README')
archive_file($get_path,$put_path,'cpinad2d.README')
archive_file($get_path,$put_path,'mqmas7qzf2d.README')
archive_file($get_path,$put_path,'mqmas9qzf2d.README')
archive_file($get_path,$put_path,'mashsqc2d.README')
archive_file($get_path,$put_path,'r2inv1d.README')
archive_file($get_path,$put_path,'tancpxpmlg.README')
archive_file($get_path,$put_path,'tancpxblew.README')
archive_file($get_path,$put_path,'tancpxdumbo.README')
archive_file($get_path,$put_path,'decorcptan2d.README')
archive_file($get_path,$put_path,'presto1cp.README')
archive_file($get_path,$put_path,'presto2cp.README')
archive_file($get_path,$put_path,'presto3cp.README')
archive_file($get_path,$put_path,'onepuldfs.README')
archive_file($get_path,$put_path,'c7inadwpmlg2d.README')
archive_file($get_path,$put_path,'wdumbo1d.README')
archive_file($get_path,$put_path,'wdumbot1d.README')
archive_file($get_path,$put_path,'c7inadwdumbot2d.README')
archive_file($get_path,$put_path,'c7inadwdumbogen2d.README')
archive_file($get_path,$put_path,'mqmas3qdfsspltse2d.README')
archive_file($get_path,$put_path,'mqmas3qspltse2d.README')
archive_file($get_path,$put_path,'mqmas3qse2d.README')
archive_file($get_path,$put_path,'ineptxyonepul.README')
archive_file($get_path,$put_path,'ineptxytancp.README')
archive_file($get_path,$put_path,'ineptxyrefonepul.README')
archive_file($get_path,$put_path,'ineptxyreftancp.README')
archive_file($get_path,$put_path,'onepuldpth.README')
archive_file($get_path,$put_path,'phtran.README')
archive_file($get_path,$put_path,'mqmas3q2d.README')
archive_file($get_path,$put_path,'mqmas3qdfs2d.README')
archive_file($get_path,$put_path,'mqmas3qdfszf2d.README')
archive_file($get_path,$put_path,'dipshftr12dfs.README')
archive_file($get_path,$put_path,'repdfs.README')
archive_file($get_path,$put_path,'mqmas3qfamspltse2d.README')
archive_file($get_path,$put_path,'mqmas3qfam2spltse2d.README')
archive_file($get_path,$put_path,'qcpmg1d.README')
archive_file($get_path,$put_path,'tancpechocpmg1d.README')
archive_file($get_path,$put_path,'dipshftsr4dfs.README')
archive_file($get_path,$put_path,'mqmas3qdfs2spltse2d.README')
archive_file($get_path,$put_path,'onepulmdfs.README')
archive_file($get_path,$put_path,'pboxonepul.README')
archive_file($get_path,$put_path,'pisematest1.README')
archive_file($get_path,$put_path,'pisematest2.README')
archive_file($get_path,$put_path,'sammy2d.README')
archive_file($get_path,$put_path,'cpcpmg1d.README')
archive_file($get_path,$put_path,'rocsa2d.README')
archive_file($get_path,$put_path,'lgcp2d.README')
archive_file($get_path,$put_path,'onepulxyr.README')
archive_file($get_path,$put_path,'tancpxyr.README')
archive_file($get_path,$put_path,'hetcorlgcp2d_1.README')
archive_file($get_path,$put_path,'hetcorlgcp2dxyr.README')
archive_file($get_path,$put_path,'trapdorycpx.README')
archive_file($get_path,$put_path,'trapdor1d.README')
archive_file($get_path,$put_path,'sc14inad2d.README')
archive_file($get_path,$put_path,'seac71d.README')
archive_file($get_path,$put_path,'tancp1dfprfdr.README')
archive_file($get_path,$put_path,'tancp1dptrfdr.README')
archive_file($get_path,$put_path,'tancpxpips.README')
archive_file($get_path,$put_path,'babadpinad2d.README')
archive_file($get_path,$put_path,'hahnecho1d.README')
archive_file($get_path,$put_path,'tancpxhahnecho.README')
archive_file($get_path,$put_path,'tancpxs.README')
archive_file($get_path,$put_path,'onepuls.README')
archive_file($get_path,$put_path,'tancpxrefs.README')
archive_file($get_path,$put_path,'r2inv1ds.README')
archive_file($get_path,$put_path,'hxr1817ct2ds.README')
archive_file($get_path,$put_path,'hxtm5ct2ds.README')
archive_file($get_path,$put_path,'hxidmissct2ds.README')
archive_file($get_path,$put_path,'xxctuc2ds.README')
archive_file($get_path,$put_path,'nccdqm3ds.README')
archive_file($get_path,$put_path,'cncc4ds.README')
archive_file($get_path,$put_path,'xxctuc1sh2ds.README')
archive_file($get_path,$put_path,'tancpht1rho.README')
archive_file($get_path,$put_path,'onepult1rho.README')
archive_file($get_path,$put_path,'hssmall.README')
archive_file($get_path,$put_path,'tancpxtoss5.README')
archive_file($get_path,$put_path,'onepulsfs.README')
archive_file($get_path,$put_path,'lgfmcp1d.README')
archive_file($get_path,$put_path,'shapedtwopul1d.README')
archive_file($get_path,$put_path,'onepulhs.README')
archive_file($get_path,$put_path,'hetcorsamlgcp2d_1.README')
archive_file($get_path,$put_path,'tancpxdec2.README')
archive_file($get_path,$put_path,'onepuldec2.README')
archive_file($get_path,$put_path,'wsam1d.README')
archive_file($get_path,$put_path,'wpmlgxmx1d.README')
archive_file($get_path,$put_path,'wdumboxmx1d.README')
archive_file($get_path,$put_path,'wdumbogen1d.README')
archive_file($get_path,$put_path,'super2d.README')
archive_file($get_path,$put_path,'hetcorpmlgcp2d_1.README')
archive_file($get_path,$put_path,'hetcordumbolgcp2d_1.README')
archive_file($get_path,$put_path,'tancpxedit.README')
archive_file($get_path,$put_path,'moistlkcp.README')
archive_file($get_path,$put_path,'sammymstlk2d.README')
archive_file($get_path,$put_path,'satrec1d.README')
archive_file($get_path,$put_path,'tancpxt1.README')
archive_file($get_path,$put_path,'onepulhspl.README')
archive_file($get_path,$put_path,'codex1d.README')
archive_file($get_path,$put_path,'tancpxref.README')
archive_file($get_path,$put_path,'jmasnca2d.README')
archive_file($get_path,$put_path,'jmasnco2d.README')
archive_file($get_path,$put_path,'wiselgcp2d.README')
archive_file($get_path,$put_path,'jmascaco2d.README')
archive_file($get_path,$put_path,'jmascacosh2d.README')
archive_file($get_path,$put_path,'hahnechodfs1d.README')
archive_file($get_path,$put_path,'grad_rec.README')
archive_file($get_path,$put_path,'grad_profile.README')
archive_file($get_path,$put_path,'ahXH.README')
archive_file($get_path,$put_path,'ahYXH.README')
archive_file($get_path,$put_path,'spsmall.README')
archive_file($get_path,$put_path,'jmascacoipap2d.README')
archive_file($get_path,$put_path,'rotorsynctest.README')
archive_file($get_path,$put_path,'onepulcpm.README')
archive_file($get_path,$put_path,'tancpxcpm.README')
archive_file($get_path,$put_path,'phasetest.README')
archive_file($get_path,$put_path,'wpmlgxmx1d1.README')
archive_file($get_path,$put_path,'onepulref.README')
archive_file($get_path,$put_path,'qcpmgsh1d.README')
//archive_file($get_path,$put_path,'ahX.README')
//archive_file($get_path,$put_path,'ahXX.README')
//archive_file($get_path,$put_path,'ahYXX.README')
//archive_file($get_path,$put_path,'ahYX.README')
//archive_file($get_path,$put_path,'ahXYX.README')

"******** Create SIMPLEXER ********"

$get_path = $input_path + '/Simplexer'
$put_path = $output_path +'/Simplexer'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'onepul.s')
archive_file($get_path,$put_path,'tancpx.s')
archive_file($get_path,$put_path,'dcptan.s')
archive_file($get_path,$put_path,'wdumbogen1d.s')

"******** Create PSGLIB ********"

$get_path = $input_path + '/psglib'
$put_path = $output_path +'/psglib'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'tancpx.c')
archive_file($get_path,$put_path,'onepul.c')
archive_file($get_path,$put_path,'twopul.c')
archive_file($get_path,$put_path,'tancpxt1rho.c')
archive_file($get_path,$put_path,'tancpxflip.c')
archive_file($get_path,$put_path,'c7inad2d.c')
archive_file($get_path,$put_path,'pisema2d.c')
archive_file($get_path,$put_path,'hetcorlgcp2d.c')
archive_file($get_path,$put_path,'wisetancp2d.c')
archive_file($get_path,$put_path,'exsy2d.c')
archive_file($get_path,$put_path,'br24q.c')
archive_file($get_path,$put_path,'mrev8q.c')
archive_file($get_path,$put_path,'swwhh4.c')
archive_file($get_path,$put_path,'lgcp.c')
archive_file($get_path,$put_path,'tancpxidref.c')
archive_file($get_path,$put_path,'tancpxtoss.c')
archive_file($get_path,$put_path,'onepultoss.c')
archive_file($get_path,$put_path,'tunerp.c')
archive_file($get_path,$put_path,'ssecho1d.c')
archive_file($get_path,$put_path,'tancpht1.c')
archive_file($get_path,$put_path,'tancpxfslg.c')
archive_file($get_path,$put_path,'tancpxecho.c')
archive_file($get_path,$put_path,'mqmas3qzf2d.c')
archive_file($get_path,$put_path,'mqmas5qzf2d.c')
archive_file($get_path,$put_path,'redor1tancp.c')
archive_file($get_path,$put_path,'redor1onepul.c')
archive_file($get_path,$put_path,'redor2tancp.c')
archive_file($get_path,$put_path,'redor2onepul.c')
archive_file($get_path,$put_path,'xx.c')
archive_file($get_path,$put_path,'xmx.c')
archive_file($get_path,$put_path,'wpmlg1d.c')
archive_file($get_path,$put_path,'wpmlg2d.c')
archive_file($get_path,$put_path,'stmas2d.c')
archive_file($get_path,$put_path,'stmasspltse2d2.c')
archive_file($get_path,$put_path,'stmasdqfspltse2d.c')
archive_file($get_path,$put_path,'stmasdqfse2d.c')
archive_file($get_path,$put_path,'stmasse2d1.c')
archive_file($get_path,$put_path,'stmasse2d2.c')
archive_file($get_path,$put_path,'stmasspltse2d1.c')
archive_file($get_path,$put_path,'stmaszf2d.c')

archive_file($get_path,$put_path,'dcptan.c')
archive_file($get_path,$put_path,'dcptan3drad.c')
archive_file($get_path,$put_path,'dcp2tan3drad.c')
archive_file($get_path,$put_path,'r14inad2d.c')
archive_file($get_path,$put_path,'spc5inad2d.c')
archive_file($get_path,$put_path,'babainad2d.c')
archive_file($get_path,$put_path,'fsredor.c')
archive_file($get_path,$put_path,'hetcortancp2d.c')
archive_file($get_path,$put_path,'br24.c')
archive_file($get_path,$put_path,'mrev8.c')
archive_file($get_path,$put_path,'dcptan3dspc5.c')
archive_file($get_path,$put_path,'tancp2drad.c')
archive_file($get_path,$put_path,'tancp2dspc5.c')
archive_file($get_path,$put_path,'mashmqc2d.c')
archive_file($get_path,$put_path,'masapt1d.c')
archive_file($get_path,$put_path,'cpinad2d.c')
archive_file($get_path,$put_path,'mqmas7qzf2d.c')
archive_file($get_path,$put_path,'mqmas9qzf2d.c')
archive_file($get_path,$put_path,'mashsqc2d.c')
archive_file($get_path,$put_path,'r2inv1d.c')
archive_file($get_path,$put_path,'tancpxpmlg.c')
archive_file($get_path,$put_path,'tancpxblew.c')
archive_file($get_path,$put_path,'tancpxdumbo.c')
archive_file($get_path,$put_path,'decorcptan2d.c')
archive_file($get_path,$put_path,'presto1cp.c')
archive_file($get_path,$put_path,'presto2cp.c')
archive_file($get_path,$put_path,'presto3cp.c')
archive_file($get_path,$put_path,'onepuldfs.c')
archive_file($get_path,$put_path,'c7inadwpmlg2d.c')
archive_file($get_path,$put_path,'wdumbo1d.c')
archive_file($get_path,$put_path,'wdumbot1d.c')
archive_file($get_path,$put_path,'c7inadwdumbot2d.c')
archive_file($get_path,$put_path,'c7inadwdumbogen2d.c')
archive_file($get_path,$put_path,'mqmas3qdfsspltse2d.c')
archive_file($get_path,$put_path,'mqmas3qspltse2d.c')
archive_file($get_path,$put_path,'mqmas3qse2d.c')
archive_file($get_path,$put_path,'ineptxyonepul.c')
archive_file($get_path,$put_path,'ineptxytancp.c')
archive_file($get_path,$put_path,'ineptxyrefonepul.c')
archive_file($get_path,$put_path,'ineptxyreftancp.c')
archive_file($get_path,$put_path,'onepuldpth.c')
archive_file($get_path,$put_path,'phtran.c')
archive_file($get_path,$put_path,'mqmas3q2d.c')
archive_file($get_path,$put_path,'mqmas3qdfs2d.c')
archive_file($get_path,$put_path,'mqmas3qdfszf2d.c')
archive_file($get_path,$put_path,'dipshftr12dfs.c')
archive_file($get_path,$put_path,'repdfs.c')
archive_file($get_path,$put_path,'mqmas3qfamspltse2d.c')
archive_file($get_path,$put_path,'mqmas3qfam2spltse2d.c')
archive_file($get_path,$put_path,'qcpmg1d.c')
archive_file($get_path,$put_path,'tancpechocpmg1d.c')
archive_file($get_path,$put_path,'dipshftsr4dfs.c')
archive_file($get_path,$put_path,'mqmas3qdfs2spltse2d.c')
archive_file($get_path,$put_path,'onepulmdfs.c')
archive_file($get_path,$put_path,'pboxonepul.c')
archive_file($get_path,$put_path,'pisematest1.c')
archive_file($get_path,$put_path,'pisematest2.c')
archive_file($get_path,$put_path,'sammy2d.c')
archive_file($get_path,$put_path,'cpcpmg1d.c')
archive_file($get_path,$put_path,'rocsa2d.c')
archive_file($get_path,$put_path,'lgcp2d.c')
archive_file($get_path,$put_path,'onepulxyr.c')
archive_file($get_path,$put_path,'tancpxyr.c')
archive_file($get_path,$put_path,'hetcorlgcp2d_1.c')
archive_file($get_path,$put_path,'hetcorlgcp2dxyr.c')
archive_file($get_path,$put_path,'trapdorycpx.c')
archive_file($get_path,$put_path,'trapdor1d.c')
archive_file($get_path,$put_path,'sc14inad2d.c')
archive_file($get_path,$put_path,'seac71d.c')
archive_file($get_path,$put_path,'tancp1dfprfdr.c')
archive_file($get_path,$put_path,'tancp1dptrfdr.c')
archive_file($get_path,$put_path,'tancpxpips.c')
archive_file($get_path,$put_path,'babadpinad2d.c')
archive_file($get_path,$put_path,'hahnecho1d.c')
archive_file($get_path,$put_path,'tancpxhahnecho.c')
archive_file($get_path,$put_path,'tancpxs.c')
archive_file($get_path,$put_path,'onepuls.c')
archive_file($get_path,$put_path,'tancpxrefs.c')
archive_file($get_path,$put_path,'r2inv1ds.c')
archive_file($get_path,$put_path,'hxr1817ct2ds.c')
archive_file($get_path,$put_path,'hxtm5ct2ds.c')
archive_file($get_path,$put_path,'hxidmissct2ds.c')
archive_file($get_path,$put_path,'xxctuc2ds.c')
archive_file($get_path,$put_path,'nccdqm3ds.c')
archive_file($get_path,$put_path,'cncc4ds.c')
archive_file($get_path,$put_path,'xxctuc1sh2ds.c')
archive_file($get_path,$put_path,'tancpht1rho.c')
archive_file($get_path,$put_path,'onepult1rho.c')
archive_file($get_path,$put_path,'hssmall.c')
archive_file($get_path,$put_path,'tancpxtoss5.c')
archive_file($get_path,$put_path,'onepulsfs.c')
archive_file($get_path,$put_path,'lgfmcp1d.c')
archive_file($get_path,$put_path,'shapedtwopul1d.c')
archive_file($get_path,$put_path,'onepulhs.c')
archive_file($get_path,$put_path,'hetcorsamlgcp2d_1.c')
archive_file($get_path,$put_path,'tancpxdec2.c')
archive_file($get_path,$put_path,'onepuldec2.c')
archive_file($get_path,$put_path,'wsam1d.c')
archive_file($get_path,$put_path,'wpmlgxmx1d.c')
archive_file($get_path,$put_path,'wdumboxmx1d.c')
archive_file($get_path,$put_path,'wdumbogen1d.c')
archive_file($get_path,$put_path,'super2d.c')
archive_file($get_path,$put_path,'hetcorpmlgcp2d_1.c')
archive_file($get_path,$put_path,'hetcordumbolgcp2d_1.c')
archive_file($get_path,$put_path,'tancpxedit.c')
archive_file($get_path,$put_path,'moistlkcp.c')
archive_file($get_path,$put_path,'sammymstlk2d.c')
archive_file($get_path,$put_path,'satrec1d.c')
archive_file($get_path,$put_path,'tancpxt1.c')
archive_file($get_path,$put_path,'onepulhspl.c')
archive_file($get_path,$put_path,'codex1d.c')
archive_file($get_path,$put_path,'tancpxref.c')
archive_file($get_path,$put_path,'jmasnca2d.c')
archive_file($get_path,$put_path,'jmasnco2d.c')
archive_file($get_path,$put_path,'wiselgcp2d.c')
archive_file($get_path,$put_path,'jmascaco2d.c')
archive_file($get_path,$put_path,'jmascacosh2d.c')
archive_file($get_path,$put_path,'hahnechodfs1d.c')
archive_file($get_path,$put_path,'grad_rec.c')
archive_file($get_path,$put_path,'grad_profile.c')
archive_file($get_path,$put_path,'ahXH.c')
archive_file($get_path,$put_path,'ahYXH.c')
archive_file($get_path,$put_path,'spsmall.c')
archive_file($get_path,$put_path,'jmascacoipap2d.c')
archive_file($get_path,$put_path,'rotorsynctest.c')
archive_file($get_path,$put_path,'onepulcpm.c')
archive_file($get_path,$put_path,'tancpxcpm.c')
archive_file($get_path,$put_path,'phasetest.c')
archive_file($get_path,$put_path,'wpmlgxmx1d1.c')
archive_file($get_path,$put_path,'onepulref.c')
archive_file($get_path,$put_path,'qcpmgsh1d.c')
//archive_file($get_path,$put_path,'ahX.c')
//archive_file($get_path,$put_path,'ahXX.c')
//archive_file($get_path,$put_path,'ahYXX.c')
//archive_file($get_path,$put_path,'ahYX.c')
//archive_file($get_path,$put_path,'ahXYX.c')

"******** Create PSG ********"

$get_path = $input_path + '/psg'
$put_path = $output_path +'/psg'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'solidstandard.h')
archive_file($get_path,$put_path,'soliddefs.h')
archive_file($get_path,$put_path,'solidelements.h')
//archive_file($get_path,$put_path,'solidelements21b.h')
//archive_file($get_path,$put_path,'solidelements22c.h')
archive_file($get_path,$put_path,'solidshapegen.h')
archive_file($get_path,$put_path,'soliddecshapes.h')
archive_file($get_path,$put_path,'solidmpseqs.h')
archive_file($get_path,$put_path,'solidstates.h')
archive_file($get_path,$put_path,'solidpulses.h')
archive_file($get_path,$put_path,'solidobjects.h')
archive_file($get_path,$put_path,'make_waveform1.h')
archive_file($get_path,$put_path,'dfs.h')
archive_file($get_path,$put_path,'mdfs.h')
archive_file($get_path,$put_path,'pboxpulse.h')
archive_file($get_path,$put_path,'solidchoppers.h')
archive_file($get_path,$put_path,'solidwshapes.h')
archive_file($get_path,$put_path,'solidchoppers23a.h')

"******** Create PARLIB ********"

$get_path = $input_path + '/parlib'
$put_path = $output_path +'/parlib'
shell('mkdir ' + $put_path)

"parameter files for protocols have the protocol name"

archive_file($get_path,$put_path,'Settancpx.par') "primary RTP file"
archive_file($get_path,$put_path,'Tancpx.par')
archive_file($get_path,$put_path,'Onepul.par')
archive_file($get_path,$put_path,'Twopul.par')
archive_file($get_path,$put_path,'Tancpxt1rho.par')
archive_file($get_path,$put_path,'Tancpxflip.par')
archive_file($get_path,$put_path,'C7inad2d.par')
archive_file($get_path,$put_path,'Pisema2d.par')
archive_file($get_path,$put_path,'Hetcorlgcp2d.par')
archive_file($get_path,$put_path,'Wisetancp2d.par')
archive_file($get_path,$put_path,'Exsy2d.par')
archive_file($get_path,$put_path,'Br24q.par')
archive_file($get_path,$put_path,'Mrev8q.par')
archive_file($get_path,$put_path,'Swwhh4.par')
archive_file($get_path,$put_path,'Lgcp.par')
archive_file($get_path,$put_path,'Tancpxidref.par')
archive_file($get_path,$put_path,'Tancpxtoss.par')
archive_file($get_path,$put_path,'Onepultoss.par')
archive_file($get_path,$put_path,'Tunerp.par')
archive_file($get_path,$put_path,'Ssecho1d.par')
archive_file($get_path,$put_path,'Tancpht1.par')
archive_file($get_path,$put_path,'Tancpxfslg.par')
archive_file($get_path,$put_path,'Tancpxecho.par')
archive_file($get_path,$put_path,'Mqmas3qzf2d.par')
archive_file($get_path,$put_path,'Mqmas5qzf2d.par')
archive_file($get_path,$put_path,'Redor1tancp.par')
archive_file($get_path,$put_path,'Redor1onepul.par')
archive_file($get_path,$put_path,'Redor2tancp.par')
archive_file($get_path,$put_path,'Redor2onepul.par')
archive_file($get_path,$put_path,'Xx.par')
archive_file($get_path,$put_path,'Xmx.par')
archive_file($get_path,$put_path,'Wpmlg1d.par')
archive_file($get_path,$put_path,'Wpmlg2d.par')
archive_file($get_path,$put_path,'Stmas2d.par')
archive_file($get_path,$put_path,'Stmasspltse2d2.par')
archive_file($get_path,$put_path,'Stmasdqfspltse2d.par')
archive_file($get_path,$put_path,'Stmasdqfse2d.par')
archive_file($get_path,$put_path,'Stmasse2d1.par')
archive_file($get_path,$put_path,'Stmasse2d2.par')
archive_file($get_path,$put_path,'Stmasspltse2d1.par')
archive_file($get_path,$put_path,'Stmaszf2d.par')

archive_file($get_path,$put_path,'Dcptan.par')
archive_file($get_path,$put_path,'Dcptan3drad.par')
archive_file($get_path,$put_path,'Dcp2tan3drad.par')
archive_file($get_path,$put_path,'R14inad2d.par')
archive_file($get_path,$put_path,'Spc5inad2d.par')
archive_file($get_path,$put_path,'Babainad2d.par')
archive_file($get_path,$put_path,'Fsredor.par')
archive_file($get_path,$put_path,'Hetcortancp2d.par')
archive_file($get_path,$put_path,'Br24.par')
archive_file($get_path,$put_path,'Mrev8.par')
archive_file($get_path,$put_path,'Dcptan3dspc5.par')
archive_file($get_path,$put_path,'Tancp2drad.par')
archive_file($get_path,$put_path,'Tancp2dspc5.par')
archive_file($get_path,$put_path,'Mashmqc2d.par')
archive_file($get_path,$put_path,'Masapt1d.par')
archive_file($get_path,$put_path,'Cpinad2d.par')
archive_file($get_path,$put_path,'Mqmas7qzf2d.par')
archive_file($get_path,$put_path,'Mqmas9qzf2d.par')
archive_file($get_path,$put_path,'Mashsqc2d.par')
archive_file($get_path,$put_path,'R2inv1d.par')
archive_file($get_path,$put_path,'Tancpxpmlg.par')
archive_file($get_path,$put_path,'Tancpxblew.par')
archive_file($get_path,$put_path,'Tancpxdumbo.par')
archive_file($get_path,$put_path,'Decorcptan2d.par')
archive_file($get_path,$put_path,'Presto1cp.par')
archive_file($get_path,$put_path,'Presto2cp.par')
archive_file($get_path,$put_path,'Presto3cp.par')
archive_file($get_path,$put_path,'Onepuldfs.par')
archive_file($get_path,$put_path,'C7inadwpmlg2d.par')
archive_file($get_path,$put_path,'Wdumbo1d.par')
archive_file($get_path,$put_path,'Wdumbot1d.par')
archive_file($get_path,$put_path,'C7inadwdumbot2d.par')
archive_file($get_path,$put_path,'C7inadwdumbogen2d.par')
archive_file($get_path,$put_path,'Mqmas3qdfsspltse2d.par')
archive_file($get_path,$put_path,'Mqmas3qspltse2d.par')
archive_file($get_path,$put_path,'Mqmas3qse2d.par')
archive_file($get_path,$put_path,'Ineptxyonepul.par')
archive_file($get_path,$put_path,'Ineptxytancp.par')
archive_file($get_path,$put_path,'Ineptxyrefonepul.par')
archive_file($get_path,$put_path,'Ineptxyreftancp.par')
archive_file($get_path,$put_path,'Onepuldpth.par')
archive_file($get_path,$put_path,'Phtran.par')
archive_file($get_path,$put_path,'Mqmas3q2d.par')
archive_file($get_path,$put_path,'Mqmas3qdfs2d.par')
archive_file($get_path,$put_path,'Mqmas3qdfszf2d.par')
archive_file($get_path,$put_path,'Dipshftr12dfs.par')
archive_file($get_path,$put_path,'Repdfs.par')
archive_file($get_path,$put_path,'Mqmas3qfamspltse2d.par')
archive_file($get_path,$put_path,'Mqmas3qfam2spltse2d.par')
archive_file($get_path,$put_path,'Qcpmg1d.par')
archive_file($get_path,$put_path,'Tancpechocpmg1d.par')
archive_file($get_path,$put_path,'Dipshftsr4dfs.par')
archive_file($get_path,$put_path,'Mqmas3qdfs2spltse2d.par')
archive_file($get_path,$put_path,'Onepulmdfs.par')
archive_file($get_path,$put_path,'Pboxonepul.par')
archive_file($get_path,$put_path,'Pisematest1.par')
archive_file($get_path,$put_path,'Pisematest2.par')
archive_file($get_path,$put_path,'Sammy2d.par')
archive_file($get_path,$put_path,'Cpcpmg1d.par')
archive_file($get_path,$put_path,'Rocsa2d.par')
archive_file($get_path,$put_path,'Lgcp2d.par')
archive_file($get_path,$put_path,'Onepulxyr.par')
archive_file($get_path,$put_path,'Tancpxyr.par')
archive_file($get_path,$put_path,'Hetcorlgcp2d_1.par')
archive_file($get_path,$put_path,'Hetcorlgcp2dxyr.par')
archive_file($get_path,$put_path,'Trapdorycpx.par')
archive_file($get_path,$put_path,'Trapdor1d.par')
archive_file($get_path,$put_path,'Sc14inad2d.par')
archive_file($get_path,$put_path,'Seac71d.par')
archive_file($get_path,$put_path,'Tancp1dfprfdr.par')
archive_file($get_path,$put_path,'Tancp1dptrfdr.par')
archive_file($get_path,$put_path,'Tancpxpips.par')
archive_file($get_path,$put_path,'Babadpinad2d.par')
archive_file($get_path,$put_path,'Hahnecho1d.par')
archive_file($get_path,$put_path,'Tancpxhahnecho.par')
archive_file($get_path,$put_path,'Tancpxs.par')
archive_file($get_path,$put_path,'Onepuls.par')
archive_file($get_path,$put_path,'Tancpxrefs.par')
archive_file($get_path,$put_path,'R2inv1ds.par')
archive_file($get_path,$put_path,'Hxr1817ct2ds.par')
archive_file($get_path,$put_path,'Hxtm5ct2ds.par')
archive_file($get_path,$put_path,'Hxidmissct2ds.par')
archive_file($get_path,$put_path,'Xxctuc2ds.par')
archive_file($get_path,$put_path,'Nccdqm3ds.par')
archive_file($get_path,$put_path,'Cncc4ds.par')
archive_file($get_path,$put_path,'Xxctuc1sh2ds.par')
archive_file($get_path,$put_path,'Tancpht1rho.par')
archive_file($get_path,$put_path,'Onepult1rho.par')
archive_file($get_path,$put_path,'Hssmall.par')
archive_file($get_path,$put_path,'Tancpxtoss5.par')
archive_file($get_path,$put_path,'Onepulsfs.par')
archive_file($get_path,$put_path,'Lgfmcp1d.par')
archive_file($get_path,$put_path,'Shapedtwopul1d.par')
archive_file($get_path,$put_path,'Onepulhs.par')
archive_file($get_path,$put_path,'Hetcorsamlgcp2d_1.par')
archive_file($get_path,$put_path,'Tancpxdec2.par')
archive_file($get_path,$put_path,'Onepuldec2.par')
archive_file($get_path,$put_path,'Wsam1d.par')
archive_file($get_path,$put_path,'Wpmlgxmx1d.par')
archive_file($get_path,$put_path,'Wdumboxmx1d.par')
archive_file($get_path,$put_path,'Wdumbogen1d.par')
archive_file($get_path,$put_path,'Super2d.par')
archive_file($get_path,$put_path,'Hetcorpmlgcp2d_1.par')
archive_file($get_path,$put_path,'Hetcordumbolgcp2d_1.par')
archive_file($get_path,$put_path,'Tancpxedit.par')
archive_file($get_path,$put_path,'Moistlkcp.par')
archive_file($get_path,$put_path,'Sammymstlk2d.par')
archive_file($get_path,$put_path,'Satrec1d.par')
archive_file($get_path,$put_path,'Tancpxt1.par')
archive_file($get_path,$put_path,'Onepulhspl.par')
archive_file($get_path,$put_path,'Codex1d.par')
archive_file($get_path,$put_path,'Tancpxref.par')
archive_file($get_path,$put_path,'Jmasnca2d.par')
archive_file($get_path,$put_path,'Jmasnco2d.par')
archive_file($get_path,$put_path,'Wiselgcp2d.par')
archive_file($get_path,$put_path,'Jmascaco2d.par')
archive_file($get_path,$put_path,'Jmascacosh2d.par')
archive_file($get_path,$put_path,'Hahnechodfs1d.par')
archive_file($get_path,$put_path,'Grad_rec.par')
archive_file($get_path,$put_path,'Grad_profile.par')
archive_file($get_path,$put_path,'AhXH.par')
archive_file($get_path,$put_path,'AhYXH.par')
archive_file($get_path,$put_path,'Spsmall.par')
archive_file($get_path,$put_path,'Jmascacoipap2d.par')
archive_file($get_path,$put_path,'Rotorsynctest.par')
archive_file($get_path,$put_path,'Onepulcpm.par')
archive_file($get_path,$put_path,'Tancpxcpm.par')
archive_file($get_path,$put_path,'Phasetest.par')
archive_file($get_path,$put_path,'Wpmlgxmx1d1.par')
archive_file($get_path,$put_path,'Onepulref.par')
archive_file($get_path,$put_path,'Qcpmgsh1d.par')
//archive_file($get_path,$put_path,'AhX.par')
//archive_file($get_path,$put_path,'AhXX.par')
//archive_file($get_path,$put_path,'AhYXX.par')
//archive_file($get_path,$put_path,'AhYX.par')
//archive_file($get_path,$put_path,'AhXYX.par')

// Primary Parameter Sets for BioPack

archive_file($get_path,$put_path,'tancpx_C13.par')
archive_file($get_path,$put_path,'tancpx_N15.par')
archive_file($get_path,$put_path,'tancpxt1rho_C13.par')
archive_file($get_path,$put_path,'tancpxt1rho_N15.par')
archive_file($get_path,$put_path,'dcptan_HNC.par')

"******** Create EXECPARS ********"

$get_path = $input_path + '/execpars'
$put_path = $output_path +'/execpars'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'solids1d')
archive_file($get_path,$put_path,'solidsseq1d')

"******** Create MANUAL *********************"

$get_path = $input_path + '/manual'
$put_path = $output_path +'/manual'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'onepul')
archive_file($get_path,$put_path,'tancpx')
archive_file($get_path,$put_path,'twopul')
archive_file($get_path,$put_path,'tancpxt1rho')
archive_file($get_path,$put_path,'tancpxflip')
archive_file($get_path,$put_path,'c7inad2d')
archive_file($get_path,$put_path,'pisema2d')
archive_file($get_path,$put_path,'hetcorlgcp2d')
archive_file($get_path,$put_path,'wisetancp2d')
archive_file($get_path,$put_path,'exsy2d')
archive_file($get_path,$put_path,'br24q')
archive_file($get_path,$put_path,'mrev8q')
archive_file($get_path,$put_path,'swwhh4')
archive_file($get_path,$put_path,'lgcp')
archive_file($get_path,$put_path,'tancpxidref')
archive_file($get_path,$put_path,'tancpxtoss')
archive_file($get_path,$put_path,'onepultoss')
archive_file($get_path,$put_path,'tunerp')
archive_file($get_path,$put_path,'ssecho1d')
archive_file($get_path,$put_path,'tancpht1')
archive_file($get_path,$put_path,'tancpxfslg')
archive_file($get_path,$put_path,'tancpxecho')
archive_file($get_path,$put_path,'mqmas3qzf2d')
archive_file($get_path,$put_path,'mqmas5qzf2d')
archive_file($get_path,$put_path,'redor1tancp')
archive_file($get_path,$put_path,'redor1onepul')
archive_file($get_path,$put_path,'redor2tancp')
archive_file($get_path,$put_path,'redor2onepul')
archive_file($get_path,$put_path,'xx')
archive_file($get_path,$put_path,'xmx')
archive_file($get_path,$put_path,'wpmlg1d')
archive_file($get_path,$put_path,'wpmlg2d')
archive_file($get_path,$put_path,'stmas2d')
archive_file($get_path,$put_path,'stmasspltse2d2')
archive_file($get_path,$put_path,'stmasdqfspltse2d')
archive_file($get_path,$put_path,'stmasdqfse2d')
archive_file($get_path,$put_path,'stmasse2d1')
archive_file($get_path,$put_path,'stmasse2d2')
archive_file($get_path,$put_path,'stmasspltse2d1')
archive_file($get_path,$put_path,'stmaszf2d')

archive_file($get_path,$put_path,'dcptan')
archive_file($get_path,$put_path,'dcptan3drad')
archive_file($get_path,$put_path,'dcp2tan3drad')
archive_file($get_path,$put_path,'r14inad2d')
archive_file($get_path,$put_path,'spc5inad2d')
archive_file($get_path,$put_path,'babainad2d')
archive_file($get_path,$put_path,'fsredor')
archive_file($get_path,$put_path,'hetcortancp2d')
archive_file($get_path,$put_path,'br24')
archive_file($get_path,$put_path,'mrev8')
archive_file($get_path,$put_path,'dcptan3dspc5')
archive_file($get_path,$put_path,'tancp2drad')
archive_file($get_path,$put_path,'tancp2dspc5')
archive_file($get_path,$put_path,'mashmqc2d')
archive_file($get_path,$put_path,'masapt1d')
archive_file($get_path,$put_path,'cpinad2d')
archive_file($get_path,$put_path,'mqmas7qzf2d')
archive_file($get_path,$put_path,'mqmas9qzf2d')
archive_file($get_path,$put_path,'mashsqc2d')
archive_file($get_path,$put_path,'r2inv1d')
archive_file($get_path,$put_path,'tancpxpmlg')
archive_file($get_path,$put_path,'tancpxblew')
archive_file($get_path,$put_path,'tancpxdumbo')
archive_file($get_path,$put_path,'decorcptan2d')
archive_file($get_path,$put_path,'presto1cp')
archive_file($get_path,$put_path,'presto2cp')
archive_file($get_path,$put_path,'presto3cp')
archive_file($get_path,$put_path,'onepuldfs')
archive_file($get_path,$put_path,'c7inadwpmlg2d')
archive_file($get_path,$put_path,'wdumbo1d')
archive_file($get_path,$put_path,'wdumbot1d')
archive_file($get_path,$put_path,'c7inadwdumbot2d')
archive_file($get_path,$put_path,'c7inadwdumbogen2d')
archive_file($get_path,$put_path,'mqmas3qdfsspltse2d')
archive_file($get_path,$put_path,'mqmas3qspltse2d')
archive_file($get_path,$put_path,'mqmas3qse2d')
archive_file($get_path,$put_path,'ineptxyonepul')
archive_file($get_path,$put_path,'ineptxytancp')
archive_file($get_path,$put_path,'ineptxyrefonepul')
archive_file($get_path,$put_path,'ineptxyreftancp')
archive_file($get_path,$put_path,'onepuldpth')
archive_file($get_path,$put_path,'phtran')
archive_file($get_path,$put_path,'mqmas3q2d')
archive_file($get_path,$put_path,'mqmas3qdfs2d')
archive_file($get_path,$put_path,'mqmas3qdfszf2d')
archive_file($get_path,$put_path,'dipshftr12dfs')
archive_file($get_path,$put_path,'repdfs')
archive_file($get_path,$put_path,'mqmas3qfamspltse2d')
archive_file($get_path,$put_path,'mqmas3qfam2spltse2d')
archive_file($get_path,$put_path,'qcpmg1d')
archive_file($get_path,$put_path,'tancpechocpmg1d')
archive_file($get_path,$put_path,'dipshftsr4dfs')
archive_file($get_path,$put_path,'mqmas3qdfs2spltse2d')
archive_file($get_path,$put_path,'onepulmdfs')
archive_file($get_path,$put_path,'pboxonepul')
archive_file($get_path,$put_path,'pisematest1')
archive_file($get_path,$put_path,'pisematest2')
archive_file($get_path,$put_path,'sammy2d')
archive_file($get_path,$put_path,'cpcpmg1d')
archive_file($get_path,$put_path,'rocsa2d')
archive_file($get_path,$put_path,'lgcp2d')
archive_file($get_path,$put_path,'onepulxyr')
archive_file($get_path,$put_path,'tancpxyr')
archive_file($get_path,$put_path,'hetcorlgcp2d_1')
archive_file($get_path,$put_path,'hetcorlgcp2dxyr')
archive_file($get_path,$put_path,'trapdorycpx')
archive_file($get_path,$put_path,'trapdor1d')
archive_file($get_path,$put_path,'sc14inad2d')
archive_file($get_path,$put_path,'seac71d')
archive_file($get_path,$put_path,'tancp1dfprfdr')
archive_file($get_path,$put_path,'tancp1dptrfdr')
archive_file($get_path,$put_path,'tancpxpips')
archive_file($get_path,$put_path,'babadpinad2d')
archive_file($get_path,$put_path,'hahnecho1d')
archive_file($get_path,$put_path,'tancpxhahnecho')
archive_file($get_path,$put_path,'tancpxs')
archive_file($get_path,$put_path,'onepuls')
archive_file($get_path,$put_path,'tancpxrefs')
archive_file($get_path,$put_path,'r2inv1ds')
archive_file($get_path,$put_path,'hxr1817ct2ds')
archive_file($get_path,$put_path,'hxtm5ct2ds')
archive_file($get_path,$put_path,'hxidmissct2ds')
archive_file($get_path,$put_path,'xxctuc2ds')
archive_file($get_path,$put_path,'nccdqm3ds')
archive_file($get_path,$put_path,'cncc4ds')
archive_file($get_path,$put_path,'xxctuc1sh2ds')
archive_file($get_path,$put_path,'tancpht1rho')
archive_file($get_path,$put_path,'onepult1rho')
archive_file($get_path,$put_path,'hssmall')
archive_file($get_path,$put_path,'tancpxtoss5')
archive_file($get_path,$put_path,'onepulsfs')
archive_file($get_path,$put_path,'lgfmcp1d')
archive_file($get_path,$put_path,'shapedtwopul1d')
archive_file($get_path,$put_path,'onepulhs')
archive_file($get_path,$put_path,'hetcorsamlgcp2d_1')
archive_file($get_path,$put_path,'tancpxdec2')
archive_file($get_path,$put_path,'onepuldec2')
archive_file($get_path,$put_path,'wsam1d')
archive_file($get_path,$put_path,'wpmlgxmx1d')
archive_file($get_path,$put_path,'wdumboxmx1d')
archive_file($get_path,$put_path,'wdumbogen1d')
archive_file($get_path,$put_path,'super2d')
archive_file($get_path,$put_path,'hetcorpmlgcp2d_1')
archive_file($get_path,$put_path,'hetcordumbolgcp2d_1')
archive_file($get_path,$put_path,'tancpxedit')
archive_file($get_path,$put_path,'moistlkcp')
archive_file($get_path,$put_path,'sammymstlk2d')
archive_file($get_path,$put_path,'satrec1d')
archive_file($get_path,$put_path,'tancpxt1')
archive_file($get_path,$put_path,'onepulhspl')
archive_file($get_path,$put_path,'codex1d')
archive_file($get_path,$put_path,'tancpxref')
archive_file($get_path,$put_path,'jmasnca2d')
archive_file($get_path,$put_path,'jmasnco2d')
archive_file($get_path,$put_path,'wiselgcp2d')
archive_file($get_path,$put_path,'jmascaco2d')
archive_file($get_path,$put_path,'jmascacosh2d')
archive_file($get_path,$put_path,'hahnechodfs1d')
archive_file($get_path,$put_path,'grad_rec')
archive_file($get_path,$put_path,'grad_profile')
archive_file($get_path,$put_path,'ahXH')
archive_file($get_path,$put_path,'ahYXH')
archive_file($get_path,$put_path,'spsmall')
archive_file($get_path,$put_path,'jmascacoipap2d')
archive_file($get_path,$put_path,'rotorsynctest')
archive_file($get_path,$put_path,'onepulcpm')
archive_file($get_path,$put_path,'tancpxcpm')
archive_file($get_path,$put_path,'phasetest')
archive_file($get_path,$put_path,'wpmlgxmx1d1')
archive_file($get_path,$put_path,'onepulref')
archive_file($get_path,$put_path,'qcpmgsh1d')
//archive_file($get_path,$put_path,'ahX')
//archive_file($get_path,$put_path,'ahXX')
//archive_file($get_path,$put_path,'ahYXX')
//archive_file($get_path,$put_path,'ahYX')
//archive_file($get_path,$put_path,'ahXYX')

"Manual Pages for System Macros" 

archive_file($get_path,$put_path,'ampmode')
archive_file($get_path,$put_path,'hipwrampenable')
archive_file($get_path,$put_path,'nm1')
archive_file($get_path,$put_path,'preAmpConfig')
archive_file($get_path,$put_path,'probeConnect')

"Manual Pages for Pulse Sequence Development" 

archive_file($get_path,$put_path,'archive_file')
archive_file($get_path,$put_path,'archive_SEQUENCE')
archive_file($get_path,$put_path,'AllParGroups')
archive_file($get_path,$put_path,'AllSeqTitles')
archive_file($get_path,$put_path,'SolidsPack')
archive_file($get_path,$put_path,'SolidsPackChanges')
archive_file($get_path,$put_path,'clearallparams')
archive_file($get_path,$put_path,'clearnewparams')
archive_file($get_path,$put_path,'setnewparams')
archive_file($get_path,$put_path,'shownewparams')
archive_file($get_path,$put_path,'copypseq')
archive_file($get_path,$put_path,'capitalizestring')
archive_file($get_path,$put_path,'createparam')
archive_file($get_path,$put_path,'paramgroup')
archive_file($get_path,$put_path,'macroupdatepars')
archive_file($get_path,$put_path,'solidsetup')
archive_file($get_path,$put_path,'closesolidsetup')
archive_file($get_path,$put_path,'setupupdatepars')
archive_file($get_path,$put_path,'updateprocpars')
archive_file($get_path,$put_path,'updatetext')
archive_file($get_path,$put_path,'userlibtemplate')
archive_file($get_path,$put_path,'replacetext')
archive_file($get_path,$put_path,'make_README')
archive_file($get_path,$put_path,'make_all_README')
archive_file($get_path,$put_path,'settabs')
archive_file($get_path,$put_path,'set_all_tabs')
archive_file($get_path,$put_path,'reset_cp')

"Manual Pages for SIMPLXER and ShimDriver" 

archive_file($get_path,$put_path,'simplexer')
archive_file($get_path,$put_path,'shimdriver')

"Manual Pages for AutoCalibration" 

archive_file($get_path,$put_path,'SS_AutoCal_CP')
archive_file($get_path,$put_path,'SS_AutoCal_DP')
archive_file($get_path,$put_path,'SSpreface_Ca_CP')
archive_file($get_path,$put_path,'SSpreface_CO_CP')
archive_file($get_path,$put_path,'SSpreface_Nai_CP')
archive_file($get_path,$put_path,'SSpreface_Nam_CP')
archive_file($get_path,$put_path,'SSpreface_Ca_CP1')
archive_file($get_path,$put_path,'SSpreface_CO_CP1')
archive_file($get_path,$put_path,'SSpreface_Nai_CP1')
archive_file($get_path,$put_path,'SSpreface_Nam_CP1')
archive_file($get_path,$put_path,'SSpreface_Ca_DCP')
archive_file($get_path,$put_path,'SSpreface_CO_DCP')

"******** Create TEMPLATES/LAYOUT ***********"

$get_path = $input_path + '/templates/layout'
$put_path = $output_path +'/templates'
shell('mkdir ' + $put_path)
$put_path = $put_path +'/layout'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'tancpx')
archive_file($get_path,$put_path,'onepul')
archive_file($get_path,$put_path,'twopul')
archive_file($get_path,$put_path,'tancpxt1rho')
archive_file($get_path,$put_path,'tancpxflip')
archive_file($get_path,$put_path,'c7inad2d')
archive_file($get_path,$put_path,'pisema2d')
archive_file($get_path,$put_path,'hetcorlgcp2d')
archive_file($get_path,$put_path,'wisetancp2d')
archive_file($get_path,$put_path,'exsy2d')
archive_file($get_path,$put_path,'br24q')
archive_file($get_path,$put_path,'mrev8q')
archive_file($get_path,$put_path,'swwhh4')
archive_file($get_path,$put_path,'lgcp')
archive_file($get_path,$put_path,'tancpxidref')
archive_file($get_path,$put_path,'tancpxtoss')
archive_file($get_path,$put_path,'onepultoss')
archive_file($get_path,$put_path,'tunerp')
archive_file($get_path,$put_path,'ssecho1d')
archive_file($get_path,$put_path,'tancpht1')
archive_file($get_path,$put_path,'tancpxfslg')
archive_file($get_path,$put_path,'tancpxecho')
archive_file($get_path,$put_path,'mqmas3qzf2d')
archive_file($get_path,$put_path,'mqmas5qzf2d')
archive_file($get_path,$put_path,'redor1tancp')
archive_file($get_path,$put_path,'redor1onepul')
archive_file($get_path,$put_path,'redor2tancp')
archive_file($get_path,$put_path,'redor2onepul')
archive_file($get_path,$put_path,'xx')
archive_file($get_path,$put_path,'xmx')
archive_file($get_path,$put_path,'wpmlg1d')
archive_file($get_path,$put_path,'wpmlg2d')
archive_file($get_path,$put_path,'stmas2d')
archive_file($get_path,$put_path,'stmasspltse2d2')
archive_file($get_path,$put_path,'stmasdqfspltse2d')
archive_file($get_path,$put_path,'stmasdqfse2d')
archive_file($get_path,$put_path,'stmasse2d1')
archive_file($get_path,$put_path,'stmasse2d2')
archive_file($get_path,$put_path,'stmasspltse2d1')
archive_file($get_path,$put_path,'stmaszf2d')

archive_file($get_path,$put_path,'dcptan')
archive_file($get_path,$put_path,'dcptan3drad')
archive_file($get_path,$put_path,'dcp2tan3drad')
archive_file($get_path,$put_path,'r14inad2d')
archive_file($get_path,$put_path,'spc5inad2d')
archive_file($get_path,$put_path,'babainad2d')
archive_file($get_path,$put_path,'fsredor')
archive_file($get_path,$put_path,'hetcortancp2d')
archive_file($get_path,$put_path,'br24')
archive_file($get_path,$put_path,'mrev8')
archive_file($get_path,$put_path,'dcptan3dspc5')
archive_file($get_path,$put_path,'tancp2drad')
archive_file($get_path,$put_path,'tancp2dspc5')
archive_file($get_path,$put_path,'mashmqc2d')
archive_file($get_path,$put_path,'masapt1d')
archive_file($get_path,$put_path,'cpinad2d')
archive_file($get_path,$put_path,'mqmas7qzf2d')
archive_file($get_path,$put_path,'mqmas9qzf2d')
archive_file($get_path,$put_path,'mashsqc2d')
archive_file($get_path,$put_path,'r2inv1d')
archive_file($get_path,$put_path,'tancpxpmlg')
archive_file($get_path,$put_path,'tancpxblew')
archive_file($get_path,$put_path,'tancpxdumbo')
archive_file($get_path,$put_path,'decorcptan2d')
archive_file($get_path,$put_path,'presto1cp')
archive_file($get_path,$put_path,'presto2cp')
archive_file($get_path,$put_path,'presto3cp')
archive_file($get_path,$put_path,'onepuldfs')
archive_file($get_path,$put_path,'c7inadwpmlg2d')
archive_file($get_path,$put_path,'wdumbo1d')
archive_file($get_path,$put_path,'wdumbot1d')
archive_file($get_path,$put_path,'c7inadwdumbot2d')
archive_file($get_path,$put_path,'c7inadwdumbogen2d')
archive_file($get_path,$put_path,'mqmas3qdfsspltse2d')
archive_file($get_path,$put_path,'mqmas3qspltse2d')
archive_file($get_path,$put_path,'mqmas3qse2d')
archive_file($get_path,$put_path,'ineptxyonepul')
archive_file($get_path,$put_path,'ineptxytancp')
archive_file($get_path,$put_path,'ineptxyrefonepul')
archive_file($get_path,$put_path,'ineptxyreftancp')
archive_file($get_path,$put_path,'onepuldpth')
archive_file($get_path,$put_path,'phtran')
archive_file($get_path,$put_path,'mqmas3q2d')
archive_file($get_path,$put_path,'mqmas3qdfs2d')
archive_file($get_path,$put_path,'mqmas3qdfszf2d')
archive_file($get_path,$put_path,'dipshftr12dfs')
archive_file($get_path,$put_path,'repdfs')
archive_file($get_path,$put_path,'mqmas3qfamspltse2d')
archive_file($get_path,$put_path,'mqmas3qfam2spltse2d')
archive_file($get_path,$put_path,'qcpmg1d')
archive_file($get_path,$put_path,'tancpechocpmg1d')
archive_file($get_path,$put_path,'dipshftsr4dfs')
archive_file($get_path,$put_path,'mqmas3qdfs2spltse2d')
archive_file($get_path,$put_path,'onepulmdfs')
archive_file($get_path,$put_path,'pboxonepul')
archive_file($get_path,$put_path,'pisematest1')
archive_file($get_path,$put_path,'pisematest2')
archive_file($get_path,$put_path,'sammy2d')
archive_file($get_path,$put_path,'cpcpmg1d')
archive_file($get_path,$put_path,'rocsa2d')
archive_file($get_path,$put_path,'lgcp2d')
archive_file($get_path,$put_path,'onepulxyr')
archive_file($get_path,$put_path,'tancpxyr')
archive_file($get_path,$put_path,'hetcorlgcp2d_1')
archive_file($get_path,$put_path,'hetcorlgcp2dxyr')
archive_file($get_path,$put_path,'trapdorycpx')
archive_file($get_path,$put_path,'trapdor1d')
archive_file($get_path,$put_path,'sc14inad2d')
archive_file($get_path,$put_path,'seac71d')
archive_file($get_path,$put_path,'tancp1dfprfdr')
archive_file($get_path,$put_path,'tancp1dptrfdr')
archive_file($get_path,$put_path,'tancpxpips')
archive_file($get_path,$put_path,'babadpinad2d')
archive_file($get_path,$put_path,'hahnecho1d')
archive_file($get_path,$put_path,'tancpxhahnecho')
archive_file($get_path,$put_path,'tancpxs')
archive_file($get_path,$put_path,'onepuls')
archive_file($get_path,$put_path,'tancpxrefs')
archive_file($get_path,$put_path,'r2inv1ds')
archive_file($get_path,$put_path,'hxr1817ct2ds')
archive_file($get_path,$put_path,'hxtm5ct2ds')
archive_file($get_path,$put_path,'hxidmissct2ds')
archive_file($get_path,$put_path,'xxctuc2ds')
archive_file($get_path,$put_path,'nccdqm3ds')
archive_file($get_path,$put_path,'cncc4ds')
archive_file($get_path,$put_path,'xxctuc1sh2ds')
archive_file($get_path,$put_path,'tancpht1rho')
archive_file($get_path,$put_path,'onepult1rho')
archive_file($get_path,$put_path,'hssmall')
archive_file($get_path,$put_path,'tancpxtoss5')
archive_file($get_path,$put_path,'onepulsfs')
archive_file($get_path,$put_path,'lgfmcp1d')
archive_file($get_path,$put_path,'shapedtwopul1d')
archive_file($get_path,$put_path,'onepulhs')
archive_file($get_path,$put_path,'hetcorsamlgcp2d_1')
archive_file($get_path,$put_path,'tancpxdec2')
archive_file($get_path,$put_path,'onepuldec2')
archive_file($get_path,$put_path,'wsam1d')
archive_file($get_path,$put_path,'wpmlgxmx1d')
archive_file($get_path,$put_path,'wdumboxmx1d')
archive_file($get_path,$put_path,'wdumbogen1d')
archive_file($get_path,$put_path,'super2d')
archive_file($get_path,$put_path,'hetcorpmlgcp2d_1')
archive_file($get_path,$put_path,'hetcordumbolgcp2d_1')
archive_file($get_path,$put_path,'tancpxedit')
archive_file($get_path,$put_path,'moistlkcp')
archive_file($get_path,$put_path,'sammymstlk2d')
archive_file($get_path,$put_path,'satrec1d')
archive_file($get_path,$put_path,'tancpxt1')
archive_file($get_path,$put_path,'onepulhspl')
archive_file($get_path,$put_path,'codex1d')
archive_file($get_path,$put_path,'tancpxref')
archive_file($get_path,$put_path,'jmasnca2d')
archive_file($get_path,$put_path,'jmasnco2d')
archive_file($get_path,$put_path,'wiselgcp2d')
archive_file($get_path,$put_path,'jmascaco2d')
archive_file($get_path,$put_path,'jmascacosh2d')
archive_file($get_path,$put_path,'hahnechodfs1d')
archive_file($get_path,$put_path,'grad_rec')
archive_file($get_path,$put_path,'grad_profile')
archive_file($get_path,$put_path,'ahXH')
archive_file($get_path,$put_path,'ahYXH')
archive_file($get_path,$put_path,'spsmall')
archive_file($get_path,$put_path,'jmascacoipap2d')
archive_file($get_path,$put_path,'rotorsynctest')
archive_file($get_path,$put_path,'onepulcpm')
archive_file($get_path,$put_path,'tancpxcpm')
archive_file($get_path,$put_path,'phasetest')
archive_file($get_path,$put_path,'wpmlgxmx1d1')
archive_file($get_path,$put_path,'onepulref')
archive_file($get_path,$put_path,'qcpmgsh1d')
//archive_file($get_path,$put_path,'ahX')
//archive_file($get_path,$put_path,'ahXX')
//archive_file($get_path,$put_path,'ahYXX')
//archive_file($get_path,$put_path,'ahYX')
//archive_file($get_path,$put_path,'ahXYX')

archive_file($get_path,$put_path,'solidsdefault')

"******** Create TEMPLATES/VNMRJ/PROTOCOLS ***********"

$get_path = $input_path + '/templates/vnmrj/protocols'
$put_path = $output_path +'/templates/vnmrj'
shell('mkdir ' + $put_path)
$put_path = $put_path +'/protocols'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'Settancpx.xml')
archive_file($get_path,$put_path,'Tancpx.xml')
archive_file($get_path,$put_path,'Onepul.xml')
archive_file($get_path,$put_path,'Twopul.xml')
archive_file($get_path,$put_path,'Tancpxt1rho.xml')
archive_file($get_path,$put_path,'Tancpxflip.xml')
archive_file($get_path,$put_path,'C7inad2d.xml')
archive_file($get_path,$put_path,'Pisema2d.xml')
archive_file($get_path,$put_path,'Hetcorlgcp2d.xml')
archive_file($get_path,$put_path,'Wisetancp2d.xml')
archive_file($get_path,$put_path,'Exsy2d.xml')
archive_file($get_path,$put_path,'Br24q.xml')
archive_file($get_path,$put_path,'Mrev8q.xml')
archive_file($get_path,$put_path,'Swwhh4.xml')
archive_file($get_path,$put_path,'Lgcp.xml')
archive_file($get_path,$put_path,'Tancpxidref.xml')
archive_file($get_path,$put_path,'Tancpxtoss.xml')
archive_file($get_path,$put_path,'Onepultoss.xml')
archive_file($get_path,$put_path,'Tunerp.xml')
archive_file($get_path,$put_path,'Ssecho1d.xml')
archive_file($get_path,$put_path,'Tancpht1.xml')
archive_file($get_path,$put_path,'Tancpxfslg.xml')
archive_file($get_path,$put_path,'Tancpxecho.xml')
archive_file($get_path,$put_path,'Mqmas3qzf2d.xml')
archive_file($get_path,$put_path,'Mqmas5qzf2d.xml')
archive_file($get_path,$put_path,'Redor1tancp.xml')
archive_file($get_path,$put_path,'Redor1onepul.xml')
archive_file($get_path,$put_path,'Redor2tancp.xml')
archive_file($get_path,$put_path,'Redor2onepul.xml')
archive_file($get_path,$put_path,'Xx.xml')
archive_file($get_path,$put_path,'Xmx.xml')
archive_file($get_path,$put_path,'Wpmlg1d.xml')
archive_file($get_path,$put_path,'Wpmlg2d.xml')
archive_file($get_path,$put_path,'Stmas2d.xml')
archive_file($get_path,$put_path,'Stmasspltse2d2.xml')
archive_file($get_path,$put_path,'Stmasdqfspltse2d.xml')
archive_file($get_path,$put_path,'Stmasdqfse2d.xml')
archive_file($get_path,$put_path,'Stmasse2d1.xml')
archive_file($get_path,$put_path,'Stmasse2d2.xml')
archive_file($get_path,$put_path,'Stmasspltse2d1.xml')
archive_file($get_path,$put_path,'Stmaszf2d.xml')

archive_file($get_path,$put_path,'Dcptan.xml')
archive_file($get_path,$put_path,'Dcptan3drad.xml')
archive_file($get_path,$put_path,'Dcp2tan3drad.xml')
archive_file($get_path,$put_path,'R14inad2d.xml')
archive_file($get_path,$put_path,'Spc5inad2d.xml')
archive_file($get_path,$put_path,'Babainad2d.xml')
archive_file($get_path,$put_path,'Fsredor.xml')
archive_file($get_path,$put_path,'Hetcortancp2d.xml')
archive_file($get_path,$put_path,'Br24.xml')
archive_file($get_path,$put_path,'Mrev8.xml')
archive_file($get_path,$put_path,'Dcptan3dspc5.xml')
archive_file($get_path,$put_path,'Tancp2drad.xml')
archive_file($get_path,$put_path,'Tancp2dspc5.xml')
archive_file($get_path,$put_path,'Mashmqc2d.xml')
archive_file($get_path,$put_path,'Masapt1d.xml')
archive_file($get_path,$put_path,'Cpinad2d.xml')
archive_file($get_path,$put_path,'Mqmas7qzf2d.xml')
archive_file($get_path,$put_path,'Mqmas9qzf2d.xml')
archive_file($get_path,$put_path,'Mashsqc2d.xml')
archive_file($get_path,$put_path,'R2inv1d.xml')
archive_file($get_path,$put_path,'Tancpxpmlg.xml')
archive_file($get_path,$put_path,'Tancpxblew.xml')
archive_file($get_path,$put_path,'Tancpxdumbo.xml')
archive_file($get_path,$put_path,'Decorcptan2d.xml')
archive_file($get_path,$put_path,'Presto1cp.xml')
archive_file($get_path,$put_path,'Presto2cp.xml')
archive_file($get_path,$put_path,'Presto3cp.xml')
archive_file($get_path,$put_path,'Onepuldfs.xml')
archive_file($get_path,$put_path,'C7inadwpmlg2d.xml')
archive_file($get_path,$put_path,'Wdumbo1d.xml')
archive_file($get_path,$put_path,'Wdumbot1d.xml')
archive_file($get_path,$put_path,'C7inadwdumbot2d.xml')
archive_file($get_path,$put_path,'C7inadwdumbogen2d.xml')
archive_file($get_path,$put_path,'Mqmas3qdfsspltse2d.xml')
archive_file($get_path,$put_path,'Mqmas3qspltse2d.xml')
archive_file($get_path,$put_path,'Mqmas3qse2d.xml')
archive_file($get_path,$put_path,'Ineptxyonepul.xml')
archive_file($get_path,$put_path,'Ineptxytancp.xml')
archive_file($get_path,$put_path,'Ineptxyrefonepul.xml')
archive_file($get_path,$put_path,'Ineptxyreftancp.xml')
archive_file($get_path,$put_path,'Onepuldpth.xml')
archive_file($get_path,$put_path,'Phtran.xml')
archive_file($get_path,$put_path,'Mqmas3q2d.xml')
archive_file($get_path,$put_path,'Mqmas3qdfs2d.xml')
archive_file($get_path,$put_path,'Mqmas3qdfszf2d.xml')
archive_file($get_path,$put_path,'Dipshftr12dfs.xml')
archive_file($get_path,$put_path,'Repdfs.xml')
archive_file($get_path,$put_path,'Mqmas3qfamspltse2d.xml')
archive_file($get_path,$put_path,'Mqmas3qfam2spltse2d.xml')
archive_file($get_path,$put_path,'Qcpmg1d.xml')
archive_file($get_path,$put_path,'Tancpechocpmg1d.xml')
archive_file($get_path,$put_path,'Dipshftsr4dfs.xml')
archive_file($get_path,$put_path,'Mqmas3qdfs2spltse2d.xml')
archive_file($get_path,$put_path,'Onepulmdfs.xml')
archive_file($get_path,$put_path,'Pboxonepul.xml')
archive_file($get_path,$put_path,'Pisematest1.xml')
archive_file($get_path,$put_path,'Pisematest2.xml')
archive_file($get_path,$put_path,'Sammy2d.xml')
archive_file($get_path,$put_path,'Cpcpmg1d.xml')
archive_file($get_path,$put_path,'Rocsa2d.xml')
archive_file($get_path,$put_path,'Lgcp2d.xml')
archive_file($get_path,$put_path,'Onepulxyr.xml')
archive_file($get_path,$put_path,'Tancpxyr.xml')
archive_file($get_path,$put_path,'Hetcorlgcp2d_1.xml')
archive_file($get_path,$put_path,'Hetcorlgcp2dxyr.xml')
archive_file($get_path,$put_path,'Trapdorycpx.xml')
archive_file($get_path,$put_path,'Trapdor1d.xml')
archive_file($get_path,$put_path,'Sc14inad2d.xml')
archive_file($get_path,$put_path,'Seac71d.xml')
archive_file($get_path,$put_path,'Tancp1dfprfdr.xml')
archive_file($get_path,$put_path,'Tancp1dptrfdr.xml')
archive_file($get_path,$put_path,'Tancpxpips.xml')
archive_file($get_path,$put_path,'Babadpinad2d.xml')
archive_file($get_path,$put_path,'Hahnecho1d.xml')
archive_file($get_path,$put_path,'Tancpxhahnecho.xml')
archive_file($get_path,$put_path,'Tancpxs.xml')
archive_file($get_path,$put_path,'Onepuls.xml')
archive_file($get_path,$put_path,'Tancpxrefs.xml')
archive_file($get_path,$put_path,'R2inv1ds.xml')
archive_file($get_path,$put_path,'Hxr1817ct2ds.xml')
archive_file($get_path,$put_path,'Hxtm5ct2ds.xml')
archive_file($get_path,$put_path,'Hxidmissct2ds.xml')
archive_file($get_path,$put_path,'Xxctuc2ds.xml')
archive_file($get_path,$put_path,'Nccdqm3ds.xml')
archive_file($get_path,$put_path,'Cncc4ds.xml')
archive_file($get_path,$put_path,'Xxctuc1sh2ds.xml')
archive_file($get_path,$put_path,'Tancpht1rho.xml')
archive_file($get_path,$put_path,'Onepult1rho.xml')
archive_file($get_path,$put_path,'Hssmall.xml')
archive_file($get_path,$put_path,'Tancpxtoss5.xml')
archive_file($get_path,$put_path,'Onepulsfs.xml')
archive_file($get_path,$put_path,'Lgfmcp1d.xml')
archive_file($get_path,$put_path,'Shapedtwopul1d.xml')
archive_file($get_path,$put_path,'Onepulhs.xml')
archive_file($get_path,$put_path,'Hetcorsamlgcp2d_1.xml')
archive_file($get_path,$put_path,'Tancpxdec2.xml')
archive_file($get_path,$put_path,'Onepuldec2.xml')
archive_file($get_path,$put_path,'Wsam1d.xml')
archive_file($get_path,$put_path,'Wpmlgxmx1d.xml')
archive_file($get_path,$put_path,'Wdumboxmx1d.xml')
archive_file($get_path,$put_path,'Wdumbogen1d.xml')
archive_file($get_path,$put_path,'Super2d.xml')
archive_file($get_path,$put_path,'Hetcorpmlgcp2d_1.xml')
archive_file($get_path,$put_path,'Hetcordumbolgcp2d_1.xml')
archive_file($get_path,$put_path,'Tancpxedit.xml')
archive_file($get_path,$put_path,'Moistlkcp.xml')
archive_file($get_path,$put_path,'Sammymstlk2d.xml')
archive_file($get_path,$put_path,'Satrec1d.xml')
archive_file($get_path,$put_path,'Tancpxt1.xml')
archive_file($get_path,$put_path,'Onepulhspl.xml')
archive_file($get_path,$put_path,'Codex1d.xml')
archive_file($get_path,$put_path,'Tancpxref.xml')
archive_file($get_path,$put_path,'Jmasnca2d.xml')
archive_file($get_path,$put_path,'Jmasnco2d.xml')
archive_file($get_path,$put_path,'Wiselgcp2d.xml')
archive_file($get_path,$put_path,'Jmascaco2d.xml')
archive_file($get_path,$put_path,'Jmascacosh2d.xml')
archive_file($get_path,$put_path,'Hahnechodfs1d.xml')
archive_file($get_path,$put_path,'Grad_rec.xml')
archive_file($get_path,$put_path,'Grad_profile.xml')
archive_file($get_path,$put_path,'AhXH.xml')
archive_file($get_path,$put_path,'AhYXH.xml')
archive_file($get_path,$put_path,'Spsmall.xml')
archive_file($get_path,$put_path,'Jmascacoipap2d.xml')
archive_file($get_path,$put_path,'Rotorsynctest.xml')
archive_file($get_path,$put_path,'Onepulcpm.xml')
archive_file($get_path,$put_path,'Tancpxcpm.xml')
archive_file($get_path,$put_path,'Phasetest.xml')
archive_file($get_path,$put_path,'Wpmlgxmx1d1.xml')
archive_file($get_path,$put_path,'Onepulref.xml')
archive_file($get_path,$put_path,'Qcpmgsh1d.xml')
//archive_file($get_path,$put_path,'AhX.xml')
//archive_file($get_path,$put_path,'AhXX.xml')
//archive_file($get_path,$put_path,'AhYXX.xml')
//archive_file($get_path,$put_path,'AhYX.xml')
//archive_file($get_path,$put_path,'AhXYX.xml')

"******** Create TEMPLATES/VNMRJ/PANELITEMS ***********"

$get_path = $input_path + '/templates/vnmrj/panelitems'
$put_path = $output_path +'/templates/vnmrj'
shell('mkdir ' + $put_path)
$put_path = $put_path +'/panelitems'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'cpHX.xml')
archive_file($get_path,$put_path,'Htppm.xml')
archive_file($get_path,$put_path,'Hspinal.xml')
archive_file($get_path,$put_path,'180X.xml')
archive_file($get_path,$put_path,'spinlockX.xml')
archive_file($get_path,$put_path,'c7X.xml')
archive_file($get_path,$put_path,'fslgX.xml')
archive_file($get_path,$put_path,'fslgH.xml')
archive_file($get_path,$put_path,'prepX.xml')
archive_file($get_path,$put_path,'br24X.xml')
archive_file($get_path,$put_path,'mrev8X.xml')
archive_file($get_path,$put_path,'swwhh4X.xml')
archive_file($get_path,$put_path,'idrefX.xml')
archive_file($get_path,$put_path,'tossX.xml')
archive_file($get_path,$put_path,'tune.xml')
archive_file($get_path,$put_path,'echoX.xml')
archive_file($get_path,$put_path,'180H.xml')
archive_file($get_path,$put_path,'mqmasX.xml')
archive_file($get_path,$put_path,'zfselX.xml')
archive_file($get_path,$put_path,'3QshearX.xml')
archive_file($get_path,$put_path,'5QshearX.xml')
archive_file($get_path,$put_path,'xy8XY.xml')
archive_file($get_path,$put_path,'Hmixtppm.xml')
archive_file($get_path,$put_path,'Hmixspinal.xml')
archive_file($get_path,$put_path,'xy8Y.xml')
archive_file($get_path,$put_path,'xxX.xml')
archive_file($get_path,$put_path,'xmxX.xml')
archive_file($get_path,$put_path,'prep1X.xml')
archive_file($get_path,$put_path,'mixX.xml')
archive_file($get_path,$put_path,'mixH.xml')
archive_file($get_path,$put_path,'pmlgX.xml')
archive_file($get_path,$put_path,'wpmlgX.xml')
archive_file($get_path,$put_path,'wpmlg1X.xml')
archive_file($get_path,$put_path,'scaleX.xml')
archive_file($get_path,$put_path,'scalef1X.xml')
archive_file($get_path,$put_path,'scaleH.xml')
archive_file($get_path,$put_path,'scalef1H.xml')
archive_file($get_path,$put_path,'stmasX.xml')
archive_file($get_path,$put_path,'echselX.xml')

archive_file($get_path,$put_path,'7QshearX.xml')
archive_file($get_path,$put_path,'9QshearX.xml')
archive_file($get_path,$put_path,'aptfHX.xml')
archive_file($get_path,$put_path,'babaX.xml')
archive_file($get_path,$put_path,'blewH.xml')
archive_file($get_path,$put_path,'cpHY.xml')
archive_file($get_path,$put_path,'cpYX.xml')
archive_file($get_path,$put_path,'dfsX.xml')
archive_file($get_path,$put_path,'dfsX.xml')
archive_file($get_path,$put_path,'dumboH.xml')
archive_file($get_path,$put_path,'hmqcHX.xml')
archive_file($get_path,$put_path,'hsqcHX.xml')
archive_file($get_path,$put_path,'inadX.xml')
archive_file($get_path,$put_path,'ineptYX.xml')
archive_file($get_path,$put_path,'pmlgH.xml')
archive_file($get_path,$put_path,'pto1HX.xml')
archive_file($get_path,$put_path,'pto2HX.xml')
archive_file($get_path,$put_path,'pto3HX.xml')
archive_file($get_path,$put_path,'r14X.xml')
archive_file($get_path,$put_path,'r18H.xml')
archive_file($get_path,$put_path,'r2invX.xml')
archive_file($get_path,$put_path,'REDORHtppm.xml')
archive_file($get_path,$put_path,'selREDOR.xml')
archive_file($get_path,$put_path,'spc5X.xml')
archive_file($get_path,$put_path,'wdumbotX.xml')
archive_file($get_path,$put_path,'wdumboX.xml')
archive_file($get_path,$put_path,'Yspinal.xml')
archive_file($get_path,$put_path,'Ytppm.xml')
archive_file($get_path,$put_path,'r12H.xml')
archive_file($get_path,$put_path,'fam1X.xml')
archive_file($get_path,$put_path,'fam2X.xml')
archive_file($get_path,$put_path,'cpmgX.xml')
archive_file($get_path,$put_path,'dumboX.xml')

archive_file($get_path,$put_path,'dreamX.xml')
archive_file($get_path,$put_path,'cp1HX.xml')
archive_file($get_path,$put_path,'drawsX.xml')
archive_file($get_path,$put_path,'raptX.xml')
archive_file($get_path,$put_path,'graptX.xml')
archive_file($get_path,$put_path,'hmqcYX.xml')
archive_file($get_path,$put_path,'rampY.xml')
archive_file($get_path,$put_path,'pipsH.xml')
archive_file($get_path,$put_path,'rampH.xml')
archive_file($get_path,$put_path,'rampX.xml')
archive_file($get_path,$put_path,'sfsH.xml')
archive_file($get_path,$put_path,'sfsX.xml')
archive_file($get_path,$put_path,'r12H.xml')
archive_file($get_path,$put_path,'dfspX.xml')
archive_file($get_path,$put_path,'mdfsX.xml')
archive_file($get_path,$put_path,'sft1A.xml')
archive_file($get_path,$put_path,'sft2A.xml')
archive_file($get_path,$put_path,'sft2A.xml')
archive_file($get_path,$put_path,'smyoX.xml')
archive_file($get_path,$put_path,'smydH.xml')
archive_file($get_path,$put_path,'STshearX.xml')
archive_file($get_path,$put_path,'lgH.xml')
archive_file($get_path,$put_path,'rfdrX.xml')
archive_file($get_path,$put_path,'r18X.xml')
archive_file($get_path,$put_path,'lgX.xml')
archive_file($get_path,$put_path,'tiltH.xml')
archive_file($get_path,$put_path,'trapHY.xml')
archive_file($get_path,$put_path,'trapXH.xml')
archive_file($get_path,$put_path,'sc14X.xml')
archive_file($get_path,$put_path,'seac7X.xml')
archive_file($get_path,$put_path,'gaussX.xml')
archive_file($get_path,$put_path,'fprfdrX.xml')
archive_file($get_path,$put_path,'ptrfdrX.xml')
archive_file($get_path,$put_path,'tm5H.xml')
archive_file($get_path,$put_path,'spnlH.xml')
archive_file($get_path,$put_path,'spnlmH.xml')
archive_file($get_path,$put_path,'Decoupling:.xml')
archive_file($get_path,$put_path,'Decouplingm:.xml')
archive_file($get_path,$put_path,'shp1X.xml')
archive_file($get_path,$put_path,'shp2X.xml')
archive_file($get_path,$put_path,'shp3X.xml')
archive_file($get_path,$put_path,'cpXY.xml')
archive_file($get_path,$put_path,'shp3X.xml')
archive_file($get_path,$put_path,'presatX.xml')
archive_file($get_path,$put_path,'presatY.xml')
archive_file($get_path,$put_path,'180Y.xml')
archive_file($get_path,$put_path,'pipsY.xml')
archive_file($get_path,$put_path,'pxyH.xml')
archive_file($get_path,$put_path,'hssmallX.xml')
archive_file($get_path,$put_path,'tilt3H.xml')
archive_file($get_path,$put_path,'tilt2H.xml')
archive_file($get_path,$put_path,'tilt1H.xml')
archive_file($get_path,$put_path,'sfmX.xml')
archive_file($get_path,$put_path,'samH.xml')
archive_file($get_path,$put_path,'wsamX.xml')
archive_file($get_path,$put_path,'dcfX.xml')
archive_file($get_path,$put_path,'dcf1X.xml')
archive_file($get_path,$put_path,'superX.xml')
archive_file($get_path,$put_path,'sr4H.xml')
archive_file($get_path,$put_path,'lockH.xml')
archive_file($get_path,$put_path,'compH.xml')
archive_file($get_path,$put_path,'decofH.xml')
archive_file($get_path,$put_path,'satX.xml')
archive_file($get_path,$put_path,'Hwaltz.xml')
archive_file($get_path,$put_path,'Ywaltz.xml')
archive_file($get_path,$put_path,'Xseq.xml')
archive_file($get_path,$put_path,'Xwaltz.xml')
archive_file($get_path,$put_path,'Xspinal.xml')
archive_file($get_path,$put_path,'Xtppm.xml')
archive_file($get_path,$put_path,'echoH.xml')
archive_file($get_path,$put_path,'zG.xml')
archive_file($get_path,$put_path,'cdxX.xml')
archive_file($get_path,$put_path,'shcaX.xml')
archive_file($get_path,$put_path,'shcoX.xml')
archive_file($get_path,$put_path,'shY.xml')
archive_file($get_path,$put_path,'gradZ.xml')
archive_file($get_path,$put_path,'Hspinal2.xml')
archive_file($get_path,$put_path,'Xspinal2.xml')
archive_file($get_path,$put_path,'cpmH.xml')

"******** Create TEMPLATES/VNMRJ/INTERFACE **********"

$get_path = $input_path + '/templates/vnmrj/interface'
$put_path = $output_path +'/templates/vnmrj'
$put_path2 = $put_path +'/interface'
shell('mkdir ' + $put_path2)

archive_file($get_path,$put_path2,'SolidStateExpts21b.xml')
archive_file($get_path,$put_path2,'SolidStateExpts22c.xml')
archive_file($get_path,$put_path2,'SolidStateExpts.xml')
archive_file($get_path,$put_path2,'Solids1DExpts.xml')
archive_file($get_path,$put_path2,'HX2DExpts.xml')
archive_file($get_path,$put_path2,'HXYExpts.xml')
archive_file($get_path,$put_path2,'UIUCsExpts.xml')
archive_file($get_path,$put_path2,'RECXYExpts.xml')
archive_file($get_path,$put_path2,'MultipulseExpts.xml')
archive_file($get_path,$put_path2,'QuadrupoleExpts.xml')
archive_file($get_path,$put_path2,'ProtocolLabels.xml')  "Needed for 2.2C Only"
archive_file($get_path,$put_path2,'ExperimentSelector.xml') "Needed for 3.0 Only"

"******** Create ADM/USERS **********"

$get_path = $input_path + '/adm/users'
$put_path = $output_path +'/adm'
shell('mkdir ' + $put_path)
$put_path = $put_path +'/users'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'protocolListWalkup.xml')  "Available for 2.1B only" 

"******** Create ADM/USERS/USERPROFILES **********"
"          carries over from adm/users            "

$get_path = $input_path + '/adm/users/userProfiles'
$put_path = $put_path +'/userProfiles'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'AllSolids2.txt')  "Available for 2.2C Only"
archive_file($get_path,$put_path,'AllSolids2.xml')  "Available for 2.2C Only"
archive_file($get_path,$put_path,'AllSolids.txt')   "Needed for 3.0 Only"
archive_file($get_path,$put_path,'AllSolids.xml')   "Needed for 3.0 Only"

"******** Create WTLIB ********"

$get_path = $input_path + '/wtlib'
$put_path = $output_path +'/wtlib'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'trap.c')
archive_file($get_path,$put_path,'trap')
archive_file($get_path,$put_path,'trap.wtp')

"******** Create SHIMS ********"

$get_path = $input_path + '/shims'
$put_path = $output_path +'/shims'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'coarse.method')
archive_file($get_path,$put_path,'coryXfull.method')
archive_file($get_path,$put_path,'coryYfull.method')

"******** Create BIN Directory in User (less vnmrsys) Directory********"

length(userdir):$userdirlength
substr(userdir,1,$userdirlength - 8):$user_path

$get_path = $user_path + '/bin'
$put_path = $output_path +'/bin'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'vnmr_dtpad')

"******** Add Current .DATE file ********"

$get_path = $backup_path
$put_path = $output_path 
$date_name = $name_lower + '.DATE'
$date_file = $backup_path + '/' + $date_name

exists($date_file,'file'):$e4
if ($e4 > 0.5) then
   archive_file($backup_path, $output_path, $date_name)
else
   $date_file = $output_path + '/' + $date_name
   write('file',$date_file,'%s:',$name_upper)
   endif
$date_file = $output_path + '/' + $date_name
$date='' shell('date +%Y%m%d%H%M%S'):$date
write('file',$date_file,'LAST ARCHIVE DATE: %s  %s',$date, userdir)

"******** Create SolidsPack.dir *********"

$get_path = $input_path + '/SolidsPack.dir'
$put_path = $output_path +'/SolidsPack.dir'
shell('mkdir ' + $put_path)

archive_file($get_path,$put_path,'SolidsPack.README')
archive_file($get_path,$put_path,'SP_doc')
archive_file($get_path,$put_path,'SP_rev')

"******** Add a TAR file of the directories ********"

$tar_file = $output_path + '/' + $name_lower + '.tar'
$directories = ''
$directories = $directories + ' -C ' + $output_path + ' maclib'
$directories = $directories + ' -C ' + $output_path + ' maclib_lowercase'
$directories = $directories + ' -C ' + $output_path + ' maclib_uppercase'
$directories = $directories + ' -C ' + $output_path + ' psglib'
$directories = $directories + ' -C ' + $output_path + ' parlib'
$directories = $directories + ' -C ' + $output_path + ' execpars'
$directories = $directories + ' -C ' + $output_path + ' templates'
$directories = $directories + ' -C ' + $output_path + ' psg' 
$directories = $directories + ' -C ' + $output_path + ' shapelib' 
$directories = $directories + ' -C ' + $output_path + ' manual'
$directories = $directories + ' -C ' + $output_path + ' adm'
$directories = $directories + ' -C ' + $output_path + ' wtlib'
$directories = $directories + ' -C ' + $output_path + ' Simplexer'
$directories = $directories + ' -C ' + $output_path + ' bin'
$directories = $directories + ' -C ' + $output_path + ' SolidsPack.dir'
$directories = $directories + ' -C ' + $output_path + ' README'
$directories = $directories + ' -C ' + $output_path + ' shims'

shell('tar cfz ' + $tar_file + '.Z ' + $directories)

$expoutput_path = $archive_path + '/EXP_OUTPUT'
exists($expoutput_path,'directory'):$e
if ($e < 0.5) then 
   shell('mkdir ' + $expoutput_path)
endif
$readme_file = $output_path + '/README/' + $name_lower + '.README'
shell('cp ' + $tar_file + '.Z  ' + $expoutput_path + '/' + $name_lower + '.tar.Z') 
shell('cp ' + $readme_file + ' ' + $expoutput_path + '/' + $name_lower + '.README')
 
write('alpha','ARCHIVE COMPLETE')
write('line3','ARCHIVE COMPLETE')





