tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

update_srtp.sh (1408B)


      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 
      7 # assume $1 is the directory with a git checkout of the libsrtp source
      8 #
      9 # srtp source is available at: https://github.com/cisco/libsrtp/
     10 #
     11 # also assumes we've made *NO* changes to the SRTP sources!  If we do, we have to merge by
     12 # hand after this process, or use a more complex one.
     13 #
     14 # For example, one could update an srtp library import head, and merge back to default.  Or keep a
     15 # separate repo with this in it, and pull from there to m-c and merge.
     16 if [ "$1" ] ; then
     17  DATE=`date`
     18  REVISION=`(cd $1; git log --pretty=oneline | head -1 | cut -c 1-40)`
     19  cp -rf $1/srtp $1/crypto $1/include $1/test $1/LICENSE $1/CHANGES $1/README.md third_party/libsrtp/src
     20 
     21  hg addremove third_party/libsrtp/src --include "third_party/libsrtp/src/VERSION" --include "third_party/libsrtp/src/LICENSE" --include "third_party/libsrtp/src/README.md" --include "**.c" --include "**.h" --similarity 90
     22 
     23  echo "srtp updated to revision $REVISION from git on $DATE" >> third_party/libsrtp/srtp_update.log
     24  echo "srtp updated to revision $REVISION from git 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