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