make-tar-file 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/bin/csh -f
  2. setenv BASENAME "/lcv/matlab/lib/"
  3. setenv DIRNAME "matlabPyrTools"
  4. setenv TARFILE "matlabPyrTools.tar"
  5. # For MAC:
  6. # Put Macintosh-MEX.sit.hqx (contains projects, C code, mex files) inside of
  7. # MEX directory.
  8. # Put matlabPyrTools.sit.hqx (entire distribution, filetype corrected, no
  9. # MEX subdirectory) inside of main directory.
  10. ####################################################################
  11. ## Make a compressed tar file of the EPS_matlab directory:
  12. echo "Before making the tar file:"
  13. echo "1) If C code is modified, re-make the mex files..."
  14. echo "2) Put correct date and version number in Contents.m. Execute 'ver' to test"
  15. echo "3) add a ChangeLog entry stating that new tarfile was generated"
  16. sleep 5
  17. pushd ${BASENAME}
  18. #echo "Removing old tarfile..."
  19. #/bin/rm "${DIRNAME}/${TARFILE}"
  20. #/bin/rm "${DIRNAME}/${TARFILE}.gz"
  21. #echo "Removing ${DIRNAME}/MEX/*.o files..."
  22. #/bin/rm ${DIRNAME}/MEX/*.o
  23. echo "Creating ${DIRNAME}/${TARFILE} ..."
  24. tar -cvf ${DIRNAME}/${TARFILE} \
  25. ${DIRNAME}/README ${DIRNAME}/ChangeLog ${DIRNAME}/*.m \
  26. ${DIRNAME}/MEX \
  27. ${DIRNAME}/TUTORIALS/README ${DIRNAME}/TUTORIALS/*.m \
  28. ${DIRNAME}/*.pgm
  29. echo "G'zipping ${DIRNAME}/${TARFILE} ..."
  30. gzip ${DIRNAME}/$TARFILE
  31. gls -l "${DIRNAME}/$TARFILE.gz"
  32. popd
  33. echo "Done. Now:"
  34. echo " cd ${BASENAME}/${DIRNAME}"
  35. echo " scp ${TARFILE}.gz hopf:/Library/WebServer/Documents-www/ftp/eero/"
  36. echo " cp README /users/eero/html_public/matlabPyrTools.README"
  37. echo " cp ChangeLog /users/eero/html_public/matlabPyrTools.ChangeLog"
  38. echo " cp Contents.m /users/eero/html_public/matlabPyrTools-Contents.m"
  39. echo ""
  40. echo " Finally, mark as updated in ~lcv/html_public/software.html"
  41. echo ""