#!/usr/bin/csh # Zip up a distribution of wxWindows. # I use this to transfer _edited_files_only_ from Sun to PC by floppy. # This saves huge amounts of time compared with transferring all files # per session, especially when the few changed files are compressed. # # This uses UNIX zip, available from all good UNIX ftp sites. # Note the sneaky use of the same response file as the DOS zipwx.bat, # although UNIX zip doesn't have a response file feature. # # It also uses a tiny program called 'isnewer' I wrote to output the # names of the files newer than the first argument. set init= if ( $1 == "" ) then goto usage endif if ( $2 == "" ) then goto usage endif echo About to archive DOS wxWindows distribution: echo From $1 echo To $2/wx150asc.zip, $2/wx150bin.zip echo CTRL-C if this is not correct. set dummy=$< /bin/rm -f $2/wx150asc.zip /bin/rm -f $2/wx150bin.zip cd $1 $1/distrib/isnewer $1/distrib/wxtime `cat $1/distrib/wx_asc.rsp $1/distrib/util_asc.rsp $1/distrib/utl1_asc.rsp $1/distrib/utl2_asc.rsp $1/distrib/utl3_asc.rsp $1/distrib/utl4_asc.rsp $1/distrib/smpl_asc.rsp $1/distrib/wxim1asc.rsp $1/distrib/wxim2asc.rsp $1/distrib/aiai_asc.rsp $1/distrib/xtra_asc.rsp $1/distrib/xtr2_asc.rsp` | zip -r -p -@ $3 $4 $5 $6 $7 $8 $2/wx150asc.zip $1/distrib/isnewer $1/distrib/wxtime `cat $1/distrib/wx_bin.rsp $1/distrib/util_bin.rsp $1/distrib/utl1_bin.rsp $1/distrib/utl2_bin.rsp $1/distrib/utl3_bin.rsp $1/distrib/utl4_bin.rsp $1/distrib/smpl_bin.rsp $1/distrib/wxim1bin.rsp $1/distrib/wx_ps.rsp $1/distrib/wx_xlp.rsp $1/distrib/wx_hlp.rsp $1/distrib/aiai_bin.rsp $1/distrib/xtra_bin.rsp $1/distrib/xtr2_bin.rsp` | zip -r -p -@ $3 $4 $5 $6 $7 $8 $2/wx150bin.zip echo echo wxWindows archived. #echo "Make wxWindows sources up-to-date w.r.t. reference time? (y/n)" #set init=$< #if ( $init == "y" ) then #echo Touching $1/distrib/wxtime #touch $1/distrib/wxtime #endif goto end usage: echo DOS wxWindows distribution copying to floppy. echo Usage: zipwx source destination echo e.g. zipwx ~/wx /pcfs end: