mksnapshot 801 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. topdir=$(pwd)
  3. today=$(date +%Y%m%d)
  4. mkdir -p ${topdir}/uclibc-tmp
  5. cd ${topdir}/uclibc-tmp
  6. export CVSROOT=':pserver:anonymous@cvs.uclinux.org:/var/cvs'
  7. if ! grep -q '^.pserver.anonymous.cvs.uclinux.org..var.cvs' ~/.cvspass
  8. then
  9. echo "$CVSROOT" 'Ay=0=a%0bZ' >>~/.cvspass
  10. fi
  11. cvs co uClibc
  12. cd ${topdir}/uclibc-tmp/uClibc/debian
  13. echo "uclibc (0.9.5-cvs${today}-1) unstable; urgency=low" >changelog.tmp
  14. echo >>changelog.tmp
  15. echo " * This is an automatic snapshot of uClibc CVS" >>changelog.tmp
  16. echo >>changelog.tmp
  17. echo " -- David Schleef <ds@schleef.org> $(date -R)" >>changelog.tmp
  18. cat changelog >>changelog.tmp
  19. mv changelog.tmp changelog
  20. cd ${topdir}/uclibc-tmp
  21. mv uClibc uclibc-cvs-${today}
  22. tar -czf ../uclibc-cvs-${today}.tgz uclibc-cvs-${today}
  23. cd ${topdir}
  24. rm -rf uclibc-tmp