mksnapshot 894 B

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