netwerk/sctp/update_sctp.sh

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rwxr-xr-x

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 #!/bin/bash
michael@0 2 #
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 # assume $1 is the directory with a SVN checkout of the libsctp source
michael@0 8 #
michael@0 9 # sctp usrlib source is available (via svn) at:
michael@0 10 # svn co https://sctp-refimpl.googlecode.com/svn/trunk sctpSVN
michael@0 11 #
michael@0 12 # also assumes we've made *NO* changes to the SCTP sources! If we do, we have to merge by
michael@0 13 # hand after this process, or use a more complex one.
michael@0 14 #
michael@0 15 # For example, one could update an sctp library import head, and merge back to default. Or keep a
michael@0 16 # separate repo with this in it, and pull from there to m-c and merge.
michael@0 17 if [ "$1" ] ; then
michael@0 18 export date=`date`
michael@0 19 export revision=`(cd $1; svnversion -n)`
michael@0 20
michael@0 21 cp $1/KERN/usrsctp/usrsctplib/*.c $1/KERN/usrsctp/usrsctplib/*.h netwerk/sctp/src
michael@0 22 cp $1/KERN/usrsctp/usrsctplib/netinet/*.c $1/KERN/usrsctp/usrsctplib/netinet/*.h netwerk/sctp/src/netinet
michael@0 23 cp $1/KERN/usrsctp/usrsctplib/netinet6/*.c $1/KERN/usrsctp/usrsctplib/netinet6/*.h netwerk/sctp/src/netinet6
michael@0 24
michael@0 25 hg addremove netwerk/sctp/src --include "**.c" --include "**.h" --similarity 90
michael@0 26
michael@0 27 echo "sctp updated to version $revision from SVN on $date" >> netwerk/sctp/sctp_update.log
michael@0 28 echo "sctp updated to version $revision from SVN on $date"
michael@0 29 echo "WARNING: reapply any local patches!"
michael@0 30 else
michael@0 31 echo "usage: $0 path_to_sctpSVN_directory"
michael@0 32 echo "run from the root of your m-c clone"
michael@0 33 fi

mercurial