lighttpd 1.4.x https://www.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

86 lines
1.7 KiB

  1. #!/bin/sh
  2. PACKAGE=@PACKAGE_TARNAME@
  3. VERSION=@VERSION@
  4. NAME=@PACKAGE_TARNAME@-@VERSION@
  5. DISTDIR="/home/jan/wwwroot/servers/www.lighttpd.net/pages/download/"
  6. RPMS="/home/jan/rpmbuild/RPMS/i386/${NAME}-1.i386.rpm \
  7. /home/jan/rpmbuild/SRPMS/${NAME}-1.src.rpm"
  8. FILES="${RPMS} ${NAME}.tar.gz \
  9. NEWS.html \
  10. ChangeLog \
  11. release-news.${VERSION}.txt \
  12. ${NAME}.tar.gz.sig"
  13. DLURL="https://www.lighttpd.net/download"
  14. pack=0
  15. echo $1
  16. case "$1" in
  17. --pack) pack=1;;
  18. esac
  19. echo ${nopack}
  20. if test x${pack} = x1; then
  21. make distcheck && rpmbuild -ta --nodeps ${NAME}.tar.gz
  22. gpg --detach-sign ${NAME}.tar.gz
  23. rpm --addsign ${RPMS}
  24. fi
  25. MD5RPM=`md5sum /home/jan/rpmbuild/RPMS/i386/${NAME}-1.i386.rpm| cut -b 1-32`
  26. MD5SRPM=`md5sum /home/jan/rpmbuild/SRPMS/${NAME}-1.src.rpm| cut -b 1-32`
  27. MD5TGZ=`md5sum ${NAME}.tar.gz| cut -b 1-32`
  28. DATE=`date +'%Y-%m-%d %H:%M'`
  29. NEWS=`cat NEWS | sed "/^- ${VERSION}/,/^-/p;d" | sed "/^- /d;/^$/d"`
  30. DLNAME="${DLURL}/${NAME}"
  31. cat > release-news.${VERSION}-mail.txt <<EOF
  32. ${PACKAGE} ${VERSION} - ${DATE}
  33. Changes
  34. -------
  35. ${NEWS}
  36. Download
  37. - ${NAME}-1.i386.rpm [built on Fedora Core 4]
  38. ${DLNAME}-1.i386.rpm
  39. MD5: ${MD5RPM}
  40. - ${NAME}-1.src.rpm
  41. ${DLNAME}-1.src.rpm
  42. MD5: ${MD5SRPM}
  43. - ${NAME}.tar.gz
  44. ${DLNAME}.tar.gz
  45. MD5: ${MD5TGZ}
  46. Signature: ${DLNAME}.tar.gz.sig
  47. EOF
  48. cat > release-news.${VERSION}.txt <<EOF
  49. ${PACKAGE} ${VERSION} - ${DATE}
  50. Changes
  51. -------
  52. ${NEWS}
  53. Checksums
  54. - ${NAME}-1.i386.rpm [built on Fedora Core 4]
  55. MD5: ${MD5RPM}
  56. - ${NAME}-1.src.rpm
  57. MD5: ${MD5SRPM}
  58. - ${NAME}.tar.gz
  59. MD5: ${MD5TGZ}
  60. EOF
  61. rst2html NEWS > NEWS.html
  62. for i in ${DISTDIR}; do
  63. cp -u ${FILES} $i
  64. done
  65. curdir=`pwd`
  66. cd ~/wwwroot/servers/www.lighttpd.net/
  67. make put
  68. cd ${curdir}