update_srtp.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. #
  3. # This Source Code Form is subject to the terms of the Mozilla Public
  4. # License, v. 2.0. If a copy of the MPL was not distributed with this
  5. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. # assume $1 is the directory with a SVN checkout of the libsrtp source
  7. #
  8. # srtp source is available (via cvs) at:
  9. # cvs -d:pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp login
  10. # cvs -z3 -d:pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp
  11. #
  12. # also assumes we've made *NO* changes to the SRTP sources! If we do, we have to merge by
  13. # hand after this process, or use a more complex one.
  14. #
  15. # For example, one could update an srtp library import head, and merge back to default. Or keep a
  16. # separate repo with this in it, and pull from there to m-c and merge.
  17. if [ "$1" ] ; then
  18. export date=`date`
  19. # export revision=`(cd $1; svnversion -n)`
  20. export CVSREAD=0
  21. cp -rf $1/srtp $1/crypto $1/include $1/VERSION $1/LICENSE $1/README $1/configure.in netwerk/srtp/src
  22. hg addremove netwerk/srtp/src --include "netwerk/srtp/src/VERSION" --include "netwerk/srtp/src/LICENSE" --include "netwerk/srtp/src/configure.in" --include "netwerk/srtp/src/README" --include "**.c" --include "**.h" --similarity 90
  23. echo "srtp updated from CVS on $date" >> netwerk/srtp/srtp_update.log
  24. echo "srtp updated from CVS on $date"
  25. echo "WARNING: reapply any local patches!"
  26. else
  27. echo "usage: $0 path_to_srtp_directory"
  28. echo "run from the root of your m-c clone"
  29. fi