選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

83 行
1.7KB

  1. #!/bin/sh
  2. package='tufte-latex'
  3. class='tufte-handout.cls'
  4. set -e # exit on first error
  5. if test $# -ne 1; then
  6. echo "usage: $0 VERSION"
  7. exit 1
  8. fi
  9. version=$1
  10. if ! echo $version | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$"
  11. then
  12. echo "VERSION should be of the form 1.2.5 (major.minor.revision)"
  13. exit 1
  14. fi
  15. if ! grep -q $version $class
  16. then
  17. echo "Error: version skew. '$version' does not match that in class"
  18. grep -H ProvidesClass $class
  19. exit 1
  20. fi
  21. date=`date +%Y/%m/%d`
  22. if ! grep -q $date $class
  23. then
  24. echo "Error: date skew. '$date' does not match that in class"
  25. grep -H ProvidesClass $class
  26. exit 1
  27. fi
  28. if ! grep -q $version History.txt
  29. then
  30. echo "Error: no release notes for '$version' found in History.txt"
  31. grep -H $version History.txt
  32. exit 1
  33. fi
  34. history_date=`date +%Y-%m-%d`
  35. if ! grep -q $history_date History.txt
  36. then
  37. echo "Error: '$history_date' not found in History.txt"
  38. grep -H $history_date History.txt
  39. exit 1
  40. fi
  41. # Refresh sample document
  42. pdflatex sample-handout > refresh-sample.log
  43. bibtex sample-handout >> refresh-sample.log
  44. pdflatex sample-handout >> refresh-sample.log
  45. pdflatex sample-handout >> refresh-sample.log
  46. rm -f sample-handout.{aux,log,out} refresh-sample.log
  47. # Make bundle
  48. mkdir -p pkg/$package-$version
  49. tar cf - `cat Manifest.txt` | ( cd pkg/$package-$version && tar xf - )
  50. zip -rq pkg/$package-$version.zip pkg/$package-$version
  51. cat << MESSAGE
  52. `openssl dgst -sha1 pkg/$package-$version.zip`
  53. Don't forget to tag (after committing changes),
  54. svn cp -m'To tag release $version.' \\
  55. https://$package.googlecode.com/svn/trunk \\
  56. https://$package.googlecode.com/svn/tags/rel_$version
  57. and upload,
  58. http://code.google.com/p/$package/downloads/list
  59. http://ctan.org/upload
  60. MESSAGE