1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/srtp/update_srtp.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +#!/bin/bash 1.5 +# 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +# assume $1 is the directory with a SVN checkout of the libsrtp source 1.11 +# 1.12 +# srtp source is available (via cvs) at: 1.13 +# cvs -d:pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp login 1.14 +# cvs -z3 -d:pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp 1.15 +# 1.16 +# also assumes we've made *NO* changes to the SRTP sources! If we do, we have to merge by 1.17 +# hand after this process, or use a more complex one. 1.18 +# 1.19 +# For example, one could update an srtp library import head, and merge back to default. Or keep a 1.20 +# separate repo with this in it, and pull from there to m-c and merge. 1.21 +if [ "$1" ] ; then 1.22 + export date=`date` 1.23 +# export revision=`(cd $1; svnversion -n)` 1.24 + export CVSREAD=0 1.25 + cp -rf $1/srtp $1/crypto $1/include $1/VERSION $1/LICENSE $1/README $1/configure.in netwerk/srtp/src 1.26 + 1.27 + 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 1.28 + 1.29 + echo "srtp updated from CVS on $date" >> netwerk/srtp/srtp_update.log 1.30 + echo "srtp updated from CVS on $date" 1.31 + echo "WARNING: reapply any local patches!" 1.32 +else 1.33 + echo "usage: $0 path_to_srtp_directory" 1.34 + echo "run from the root of your m-c clone" 1.35 +fi