netwerk/sctp/update_sctp.sh

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rwxr-xr-x

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

     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/.
     7 # assume $1 is the directory with a SVN checkout of the libsctp source
     8 #
     9 # sctp usrlib source is available (via svn) at:
    10 # svn co https://sctp-refimpl.googlecode.com/svn/trunk sctpSVN
    11 #
    12 # also assumes we've made *NO* changes to the SCTP 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 sctp 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)`
    21   cp $1/KERN/usrsctp/usrsctplib/*.c $1/KERN/usrsctp/usrsctplib/*.h netwerk/sctp/src
    22   cp $1/KERN/usrsctp/usrsctplib/netinet/*.c $1/KERN/usrsctp/usrsctplib/netinet/*.h netwerk/sctp/src/netinet
    23   cp $1/KERN/usrsctp/usrsctplib/netinet6/*.c $1/KERN/usrsctp/usrsctplib/netinet6/*.h netwerk/sctp/src/netinet6
    25   hg addremove netwerk/sctp/src --include "**.c" --include "**.h" --similarity 90
    27   echo "sctp updated to version $revision from SVN on $date" >> netwerk/sctp/sctp_update.log
    28   echo "sctp updated to version $revision from SVN on $date"
    29   echo "WARNING: reapply any local patches!"
    30 else
    31   echo "usage: $0 path_to_sctpSVN_directory"
    32   echo "run from the root of your m-c clone"
    33 fi

mercurial