mksnapshot 859 B

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